Pages: 1
Topic closed
I feel like there is some obvious solution I'm missing, but how do you say something like "1 through 10" if I want to broadcast something if one sprite hits any sprite with a name that is is a number one through ten. I hope that makes sense xD
Offline
if less than number 1 higher than highest. and 1 less than lowest.
Offline
@laptop97 Not really what I was asking about, thanks though
@ImagineIt Yeah I was thinking that but the script right now is
When green flag clicked
forever if touching 1 or 2 or 3.....all the way to ten.
Broadcast "game lost"
so how could I use the less than/greater than things in that situation?
Offline
rowona wrote:
@ImagineIt Yeah I was thinking that but the script right now is
When green flag clicked
forever if touching 1 or 2 or 3.....all the way to ten.
Broadcast "game lost"
so how could I use the less than/greater than things in that situation?
I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.
Offline
hmnwilson wrote:
rowona wrote:
@ImagineIt Yeah I was thinking that but the script right now is
When green flag clicked
forever if touching 1 or 2 or 3.....all the way to ten.
Broadcast "game lost"
so how could I use the less than/greater than things in that situation?I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
![]()
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.
Yes you can put it in!
You can try this, but I don't think it's any shorter:
Offline
scimonster wrote:
hmnwilson wrote:
rowona wrote:
@ImagineIt Yeah I was thinking that but the script right now is
When green flag clicked
forever if touching 1 or 2 or 3.....all the way to ten.
Broadcast "game lost"
so how could I use the less than/greater than things in that situation?I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
![]()
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.Yes you can put it in!
You can try this, but I don't think it's any shorter:
http://weebly.com/uploads/8/1/3/6/8136364/2298163.gif
Does that work online too? I think sprite name exploits like that are broken in the Java player, but I'm not sure.
Offline
Harakou wrote:
scimonster wrote:
hmnwilson wrote:
I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
![]()
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.Yes you can put it in!
You can try this, but I don't think it's any shorter:
http://weebly.com/uploads/8/1/3/6/8136364/2298163.gifDoes that work online too? I think sprite name exploits like that are broken in the Java player, but I'm not sure.
![]()
Java Player? Meh.
Offline
Harakou wrote:
Does that work online too? I think sprite name exploits like that are broken in the Java player, but I'm not sure.
I just tested it, it works in both the Java and Flash players. ^^
Offline
scimonster wrote:
hmnwilson wrote:
rowona wrote:
@ImagineIt Yeah I was thinking that but the script right now is
When green flag clicked
forever if touching 1 or 2 or 3.....all the way to ten.
Broadcast "game lost"
so how could I use the less than/greater than things in that situation?I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
![]()
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.Yes you can put it in!
You can try this, but I don't think it's any shorter:
http://weebly.com/uploads/8/1/3/6/8136364/2298163.gif
Whoa, I never knew about this
Thanks, that will help me a lot!
Offline
hmnwilson wrote:
scimonster wrote:
hmnwilson wrote:
I think he though you were talking about a number in general, not a sprite name. Sadly, you can't insert reporter blocks into a "touching" block, so you might have do it that way
![]()
However, depending on what the object of the game is, you could simply give 1-10 a distinctive outline colour and use "touching color" instead. That works, unless the sprites aren't supposed to be distinguishable, in which case you might have to go with the other solution, unfortunately.Yes you can put it in!
You can try this, but I don't think it's any shorter:
http://weebly.com/uploads/8/1/3/6/8136364/2298163.gifWhoa, I never knew about this
![]()
Thanks, that will help me a lot!
I'm not sure if that would work. I think sprites count themselves as something that they could "touch" as well, so it would always be true.
Offline
MyRedNeptune wrote:
hmnwilson wrote:
scimonster wrote:
Yes you can put it in!
You can try this, but I don't think it's any shorter:
http://weebly.com/uploads/8/1/3/6/8136364/2298163.gifWhoa, I never knew about this
![]()
Thanks, that will help me a lot!I'm not sure if that would work. I think sprites count themselves as something that they could "touch" as well, so it would always be true.
Well, it would be put in a sprite other than Sprite1-10. ;P
Offline
Thanks everyone; the problem with that, scimonster, is that spritetouching almost immediately just sets to ten, so it only broadcasts game lost for that one sprite. Also I've already named all the sprites the numbers one through ten (without even "sprite" before the name) , so I don't think I need the join ..I'm not sure what that changes though.
Offline
Actually, it doesn't seem to be working for me at all.
Offline
Topic closed
Pages: 1