Game Development Community

Make my bots jump

by Chris Labombard · in Technical Issues · 04/19/2005 (2:00 pm) · 6 replies

How do I make my bots jump?

I have tried %obj.jump(); and that didn't do anything... As well as %obj.trigger[2] = true;

About the author

I have been a professional game programmer for over 5 years now. I've worked on virtually every platform, dozens of games and released a few of my own games, including 2 iPhone titles and a title waiting release on Big Fish Games.


#1
04/19/2005 (2:18 pm)
Try this:

%obj.setImageTrigger(2,false)
#2
04/19/2005 (2:38 pm)
That didn't work... Neither did setting it to true.

i called it on the player as well, and it didnt do anything.. I tried from the console as well, usign the numbered ObjectId and it didnt work.
#3
04/21/2005 (11:02 am)
%obj.setImageTrigger(2,1);
This worked for me, hope this helps.

Edit: you need to have something mounted on the 2nd image slot if you want them to jump i think.
#4
04/21/2005 (11:03 am)
I just skipped the image trigger junk and directly applied an impulse to the bots.
#5
11/23/2005 (3:54 am)
Ive tried everything on this post

http://www.garagegames.com/mg/forums/result.thread.php?qt=36314

except

"I just skipped the image trigger junk and directly applied an impulse to the bots."

Could you please explain and does it work

Thanks in advance :)
#6
11/23/2005 (5:45 am)
There is a function Player.applyImpulse...

Call player.dump(); and you will find it in there.