Best i could describe it. Ok i'll try and be clear.
Basically, i'm trying to create a space ship kinda game.
I have two costumes, one for a stationary ship, one for a moving ship.
However, I cannot find how to make it change back to the first costume once the up (movement) key is released, without it flashing between them whilst the ship is moving.
Any help would be greatly appreciated.
Thanks in advance,
Dthen.
Offline
You can set up your controls something like this:
if key down arrow pressed
-change the costume
-repeat until not key down arrow pressed
--move the ship (I suggest using a variable to store the ship's speed)
change the costume back
end script
(The dashes show how to nest the logic... if that makes sense.
Offline
hehe It's a logic thing, which I guess is technically looking for a 0 or non-zero. Numbers wasn't the first place I looked for it, but I'm not sure where else it could go. : P
Maybe because it's detecting logic it could better go in sensing? But then it doesn't really fit with the rest of the sensing things either.
Offline
Check out my project http://scratch.mit.edu/projects/dmagee/5670
It has a way of making the ship look like it is using rockets. Its a very simple technique that looks good.
Last edited by dmagee (2007-05-21 16:11:44)
Offline