RPG maker styled movement

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

RPG maker styled movement

Postby Hblade » Thu Dec 06, 2012 3:21 am

I've made plenty of these before but I thought up of a different way for moving. I know there are better ways to do this but its been ages since I programmed haha. Thought I'd release this.

Moving on a "grid" style, you can't change directions in the middle of moving and you can easilly change the keys / speed / distance of the grid.

Files available in rar or zip
Attachments
chocobo.zip
(7.41 KiB) Downloaded 285 times
chocobo.rar
(7.17 KiB) Downloaded 240 times
chocobo.png
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: RPG maker styled movement

Postby knucklecrunchgames » Thu Dec 06, 2012 7:05 pm

like it :mrgreen:
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: RPG maker styled movement

Postby Hblade » Fri Dec 07, 2012 2:25 am

ty xD
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: RPG maker styled movement

Postby happyjustbecause » Sat Dec 08, 2012 2:06 am

Pretty cool, I did get one bug while playing. The "player" got stuck in a walking animation and stopped moving. I was able to get out of it easily, but just wanted to let you know. But cool grid movement.
For small creatures such as we the vastness is bearable only through love.
-Carl Sagan

Night Knight Development Thread
User avatar
happyjustbecause
 
Posts: 267
Joined: Tue Jul 26, 2011 3:10 pm
Location: Frazier Park, Ca
Score: 15 Give a positive score

Re: RPG maker styled movement

Postby jimmynewguy » Wed Dec 12, 2012 5:23 pm

Nice work, the only thing that bothers me is that you have 4 key down events when you can use 1!

KeyDown -> w a s d -> at least one is pressed
Code: Select all
int key = getLastKey();
switch(key) {
case KEY_w:
break;
case KEY_a:
break;
}
Just because it's easier to keep track of everything :)
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: RPG maker styled movement

Postby skydereign » Wed Dec 12, 2012 7:49 pm

jimmynewguy wrote:Nice work, the only thing that bothers me is that you have 4 key down events when you can use 1!

KeyDown -> w a s d -> at least one is pressed
Code: Select all
int key = getLastKey();
switch(key) {
case KEY_w:
break;
case KEY_a:
break;
}
Just because it's easier to keep track of everything :)

Actually, that isn't completely true for his code. That key down event must not enable repeat, which will probably change the result. Namely, getLastKey isn't guaranteed to get the key press, if it is set to repeat (as another key could have been pressed after). Though, in that case he can just put the code into the draw actor event.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: RPG maker styled movement

Postby jimmynewguy » Wed Dec 12, 2012 8:43 pm

Oops, I guess I didn't notice he used repeat.
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: RPG maker styled movement

Postby Hblade » Fri Dec 14, 2012 3:11 am

Thanks for the feedback guys
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest