how do you edit the directions the entities can move

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Mari064
Posts: 156
Joined: 15 Jul 2012, 18:40

Post » 04 Oct 2012, 01:44

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

User avatar
cavejohnson99
Posts: 185
Joined: 09 May 2012, 08:37

Post » 04 Oct 2012, 10:14

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

User avatar
Mari064
Posts: 156
Joined: 15 Jul 2012, 18:40

Post » 04 Oct 2012, 23:35

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
what lua in fact do i put this in.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 04 Oct 2012, 23:43

Mari064 wrote:
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
what lua in fact do i put this in.
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.

User avatar
Mari064
Posts: 156
Joined: 15 Jul 2012, 18:40

Post » 04 Oct 2012, 23:45

thank you what line in koopa and goomba would it be

Post Reply