Page 1 of 1

Game idea for robot

PostPosted: Mon Sep 26, 2011 11:17 am
by CoFFiN6
Hey everyone.I made this triangle movement for a robot(don't know if its been done before)
What do you think?

Arrows=Movement
Right Ctrl=shoot
Space=jump (needs improvement)

Thanx!

Re: Game idea for robot

PostPosted: Mon Sep 26, 2011 7:00 pm
by savvy
This is a good idea! you need to make it so you cant re-step after already stepping, so for example midway through treading right you press right again.
aldo try using yvelocity=-8; for the jumping instead of a path.

savvy

Re: Game idea for robot

PostPosted: Mon Sep 26, 2011 10:57 pm
by CoFFiN6
Thank you..yeah that would make it better..would you mind explaining how I would make code sothat when a key is pressed (like move right) it disables all movement until th triangle hits flat again? I was thinking using timer but I don't realy think that's the right way.

Re: Game idea for robot

PostPosted: Tue Sep 27, 2011 1:02 am
by tintran
cool idea.

Re: Game idea for robot

PostPosted: Tue Sep 27, 2011 10:08 pm
by NERDnotGEEK
you can use it when the animation is finished or when the animpos = 0 again you can press again. So disable when pressed. then enable when the animation finishes... simple :D

So on your keydown left and right (ill just do right)
Declare a variable called "finished" as an integer ( you could also use a boolean but id normally use finished to indicate other things later on in the game)
Code: Select all
if (finished == 1)
{
ChangeAnimation("Event Actor", "r2", FORWARD);
xvelocity=3;
finished = 0;
}


Then on animation finished(Any should be fine) if not the moving animation right.
Code: Select all
finished = 1;

Re: Game idea for robot

PostPosted: Tue Dec 13, 2011 4:26 pm
by CoFFiN6
Thanx ^

Lol I haven't been here in months.want to get back in learning GE

Re: Game idea for robot

PostPosted: Wed Dec 14, 2011 4:25 am
by happyjustbecause
Ooo, I like it a lot. You should definetly expand on this game idea, it is really an interesting movement. I also like the small reaction made in the back after shooting. The jumping animation is also pretty cool.

Thanx ^

Lol I haven't been here in months.want to get back in learning GE


So yeah, you should continue to learn gE again!

Re: Game idea for robot

PostPosted: Wed Dec 14, 2011 7:47 am
by CoFFiN6
Haha thanx! :D

Yeah I do want to continue this one. But I kinda forgot a lot of code so guess its back to forum hunting. Haha but its fun anyway.

Happy coding :lol: