I'm working on this game and whenever I get my main character to go to a certain place
using <go to x )y
It somehow makes him stay there forever! I do not have a forever control piece attatched to the sprite and he just keeps on shaking in the same spot.
Offline
Okay, I put :
<when I receive[ message
<go to x -200 )y -61
I'm trying to get the sprite to go to the far left as if going into another room.
Offline
No, it doesn't. However, another script does. I need a script that will work repeatedly, if activated, but not forever. Here is my current stats with a script:
<when green flag clicked>
<forever>
<if>
<touching[ main character
<change{arrowtouch }by(1
There is an arrow in my game and whenever my main sprite touches it, the character should go to another room.
Last edited by c0de0range (2008-05-18 14:34:19)
Offline
c0de0range wrote:
No, it doesn't. However, another script does. I need a script that will work repeatedly, if activated, but not forever. Here is my current stats with a script:
<when green flag clicked>
<forever>
<if>
<touching[ main character
<change{arrowtouch }by(1
There is an arrow in my game and whenever my main sprite touches it, the character should go to another room.
Well, I'm stumped.
Offline
Nevermind, I luckily found the solution. It turns out, the forever action won't be activated depending on how many layers a certain command is in. For example, if I put a "forever", then an "if", the "if" will be used correctly. If that "if" action activates another "if" action, then the second if action should work correctly if it is put inside the first if.
Offline
c0de0range wrote:
Nevermind, I luckily found the solution. It turns out, the forever action won't be activated depending on how many layers a certain command is in. For example, if I put a "forever", then an "if", the "if" will be used correctly. If that "if" action activates another "if" action, then the second if action should work correctly if it is put inside the first if.
Now that comment hurts my brain LOL
Offline