| Homestar Runner Wiki Forum http://forum.hrwiki.org/ |
|
| Help with game maker http://forum.hrwiki.org/viewtopic.php?f=12&t=8022 |
Page 1 of 1 |
| Author: | strongfan [ Sun Apr 23, 2006 9:45 pm ] |
| Post subject: | Help with game maker |
I'm making a mario game and when Mario lands on the ground, he can't move. But when luigi lands, he can jump but not move left or right. When they're falling, they can move left or right. what the heck? I need help. Luigi's object: in the the step event: if the posion is colission free, Execute pice of code( Code: gravity_direction=270; )gravity=0.2; else Execute piece of code( Code: gravity_direction=270; )gravity=0; in the key press event(up) if there is a collision at the relative possion(0,1) set the verticall speet to -10 key press left: Execute piece of code( Code: x-=2 )Key press right: execute piece of code( Code: x+=2 )Collission(ground): move to contact possion in the direction direction at most 12 'till a collision with a solid object. Mario: same as luigi but the verticall speed in the key press up event is -5 and in the key press left&right events replace all 2's with 4's. Untill then, I'm gonna work on graaaaaaa2[/code] |
|
| Author: | DumDeDum [ Sun Apr 23, 2006 10:00 pm ] |
| Post subject: | |
For those who don't know, maybe you should post a link to Gamemaker? http://www.gamemaker.nl |
|
| Author: | Ju Ju Master [ Sun Apr 23, 2006 10:09 pm ] |
| Post subject: | |
I didn't even read the code, it wouldn't help me unless I could test it, but I believe that they are going into the ground a pixel or two. Try something that'll make them go up. |
|
| Author: | InterruptorJones [ Sun Apr 23, 2006 10:17 pm ] |
| Post subject: | |
If you're really having problems with Game Maker, strongfan, why don't you try posting your question in the only place guaranteed to have Game Maker experts: The official Game Maker community. In other words, there are probably more effective trees you could be barking up. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|