Pages: 1
Topic closed
I am making a scratch game, with an AI walking towards me. whenever i jump, it rises into the air and then has to float down while going towards me. what is a script i could use that prevents its Y Axis from rising?
By the way its y = -62 and i tried a script saying,
"if 'y position' > -63, 'set y position to -62 "
which i thought would have solved my problem
any help would be appreciated
Offline
There are probably many ways to accomplish that, but here's one: Instead of using a "move 10 steps" type block for the AI (which always moves it in the direction it's facing), try using a "change x by 10" type block -- this'll keep him at the same y position, while still being able to turn and face you.
Offline
mrweston wrote:
There are probably many ways to accomplish that, but here's one: Instead of using a "move 10 steps" type block for the AI (which always moves it in the direction it's facing), try using a "change x by 10" type block -- this'll keep him at the same y position, while still being able to turn and face you.
oh yeah i forgot about that thanks!
Offline
Topic closed
Pages: 1