there is nothing happend when I choose the touching of sensing command in an if command . why
code:
if touching role1
go to x:50 y:50
Offline
Yes, that's right. If you want something to happen when the sprite touches another, you need to check constantly whether the condition (touching a sprite) is met.
when gf clicked forever if <touching [Sprite2 v]?> go to x:(50) y:(50) end endAlternatively, you can check just once when something else happens.
when I receive [something v] if <touching [Sprite2 v]?> go to x:(50) y:(50) end
Offline
WacsamDZero wrote:
there is nothing happend when I choose the touching of sensing command in an if command . why
code:
if touching role1
go to x:50 y:50
It's not a command. When it runs, if your sprite is touching role1 at the moment it checks for it, it will go to those coordinates. Otherwise, it will continue down the script. Make note that "if" is not synonymous to "when".
Offline
thank you very much
Offline
yes dood it is realy ameging try it.
Offline