-
[HELP] Movement In Squares?
Hey, to some form of making a move similar to the bomberman?
Example: suppose I act a checkerboard background on a map, each square that has 25x25 cm.
Instead of the Player Add the x/y to get to this point, he jumps directly to the square.
Any idea?
-
Senior Member
player's X be 0;
on every frame or what ever: X += 0.1;
after that actual x = 25 * Math.round (X);
+ 25/2 maybe.
-
No, it didn't work properly, maybe I did the code wrongly.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|