Pages: 1
I want an object (like a block) that when you touch it you just stop moving. But I also want it that if you touch it from the right then if you touch the left arrow key then you move to the left. I tried a script that said if it's touching the block then stop moving but I want it so that if its touching it on the right then you just stop moving right. Is there any script that can do that?
Offline
i will answer the second part, this may not work
when gf clicked forever if <(distance to [mouse-pointer v]) = [1]> point in direction (90 v) change x by [-5] //increase for more speed. end if <(distance to [mouse-pointer v]) = [-1]> point in direction (-90 v) change x by [-5]
Offline
one of my projects has this but i cant remember which one... look at my games and if one of them has what your looking for in it download it and look at the scripts.
Offline
when gf clicked forever if<key [right arrow v] pressed?> change x by (3) if<touching [block v]?> change x by (-3) end end if<key [left arrow v] pressed?> change x by (-3) if<touching [block v]?> change x by (3) end endThat will work in presentation mode (edit: and also online). Edit mode would prefer this:
when gf clicked forever if<key [right arrow v] pressed?> change x by (3) if<touching [block v]?> change x by (-3) wait until <key [left arrow v] pressed?> end end if<key [left arrow v] pressed?> change x by (-3) if<touching [block v]?> change x by (3) wait until <key [right arrow v] pressed?> end end
Last edited by MoreGamesNow (2012-09-28 08:01:51)
Offline
Pages: 1