I was wondering how people do this. I personally have it like when the user presses a direction, the player character's value A is set to 32. Then if have it so if value A is greator than 0, the character moves and 1 is subtracted from value A and the player control is ignored.
If value A is 0, the player gains control.
You basically explained how to do it... then asked how to do it... CONGRATS!!!
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
Well if you are trying to do what I think you are, that way is pretty much the standard way in my books... but then again I have absolutely no idea what your trying to do... HINT
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
I'm trying to make a character move like in Final Fantasy, where, if you press a direction, your character walks 32 pixels in the direction you wanted him to, and even if you press another dir, he won't change the dir until he's done walking the 32 pixels...
I would be more inclined to have the alterable value store the position that the character is moving to, rather than the number of pixels. Then you can do: IF ALT VAL A < XPOS(MYCHAR): MOVE X = X - 1, etc. But hey, that's just me.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
I always use the "A > 0" method you mentioned. It's fool-proof, really, and easy to understand/do
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Blow your method - I spent ages finding where I uploaded that tut... GIVE ME GLORY!
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
Yes ashman made that tile engine for the RPG we were working on, I have moded it slightly, but you can find the RPG (Abandoned) at the FKT website. www.fktgames.tk
We are the music makers, we are the dreamers of dreams...