Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsI'm trying to make a sprite rpg like pokemon where only the background moves when the character walks and the character moves a certain amount of pixels per step, can someone help me out?
Just move the background in the opposite direction of where the player should be going. So if you're pressing right, the background would go left.
At 3/26/10 05:44 PM, 4urentertainment wrote: Just move the background in the opposite direction of where the player should be going. So if you're pressing right, the background would go left.
ok but also what about how they walk on tiles, like everytime you walk up to a door its perfectly aligned
do summit like...
walking_right = false;
walking_timer = 0;
if( // Right Key Pressed && walking_right == false ){
walking_right = true;
}
if( walking_right == true ){
hero._x +=5;
walking_timer ++;
}
if( walking_timer == 4 ){
walking_timer = 0;
walking_right = false;
}
key down makes walking = true.
walks 4 times.
when at 4 resets everything.
i hope that's what you wanted.
also check out this link about tile based games. it's really good... http://www.tonypa.pri.ee/tbw/