A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [HELP] Movement In Squares?

  1. #1
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86

    Question [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?

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    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.
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    I'm not Crazy :D
    Join Date
    Nov 2015
    Location
    Brazil [<o>]
    Posts
    86
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center