and if so can you make the computer choose a way LIKE the tracking system with Lakito
also make it to where goomba can jump 2 blocks high
how do you edit the directions the entities can move
- cavejohnson99
- Posts: 185
- Joined: 09 May 2012, 08:37
Goombas don't normally jump at all.
Code: Select all
if objects["player"][i].x > objects["yourentityhere"][i].x then
--move right
elseif objects["player"][i].x < objects["yourentityhere"][i].x then
--move left
else --for same x axis position
--don't move
end
what lua in fact do i put this in.cavejohnson99 wrote:Goombas don't normally jump at all.Code: Select all
if objects["player"][i].x > objects["yourentityhere"][i].x then --move right elseif objects["player"][i].x < objects["yourentityhere"][i].x then --move left else --for same x axis position --don't move end
It would have to be if ANYTHING one of the movable entities, such as goombas, koopas, (bowser maybe). Those enemies are more likely to have their movement fixed by you. That's all I can think of.Mari064 wrote:what lua in fact do i put this in.cavejohnson99 wrote:Goombas don't normally jump at all.Code: Select all
if objects["player"][i].x > objects["yourentityhere"][i].x then --move right elseif objects["player"][i].x < objects["yourentityhere"][i].x then --move left else --for same x axis position --don't move end