please help bring this little girl back home..

  • http://c2rexplugins.weebly.com/rex_moveto.html

    Girl it's okay.. not to worry ..This is just an example...

    Please download capx...... How do i correctly set angle of motion for moveTo behavior?

  • Work out the current x and y that is moving to. Do some math.

    to get the angle then set it? Theres No CAPX

  • Do some math.

    Thanks, for the advice!

    Theres No CAPX

    Yes, there is..above picture...Help.capx

    basic, this is a problem..I can set angle of motion for Player...but I can not get the exact distance...

  • I'm sorry to bother you......

    but here's what I've done so far...

    ...is there a better way to accomplish "board behavior" ?

  • i can't believe that you are unable to solve this, YOU?? The master of all. hihih

  • Okay I'm at school. Im opening the capx to see what I can do.

  • Distance would be blocks on x + blocks on y traveling to

  • if distance == right/up/down/left

    Action to do here releating to right or up or down or left

    keep repeating this.

  • Distance would be blocks on x + blocks on y traveling to

    if distance == right/up/down/left

    Action to do here releating to right or up or down or left

    keep repeating this.

    I'm sorry man, I don't follow you..or maybe you do not follow me

    .........I will try to better explain.... (check .. Board_Game.capx )

    ...is there a better way to accomplish "board behavior" ?

    .....track length is unknown variable.......the player must be able to move in loops or or can build shortcuts...

    .....distance to go in every move is variable...(1x32,2x32.........6x32)

    .....the direction in which the player moves is unknown variable....

    (let's say that a player has won 6 ..his direction on move start is to the "right"..after two blocks,hi comes on crossroads..there is animation with a sign "Up" &"Down..If at this moment playing animation "Up" player automatically turn up.. if is "Down"...tun down..Ok .let's say... player stopped at the exact distance,6 blocks from start.. but stopped on the block that brings penalty..his penalty is ls. 5...now player must automatically return 5x32... etc..)

    This simple capx is just example..the player has to move on every track with this "simple" code ..

    I hope that I am now better explain the problem

  • Pythagorean theorem anyone? a^2 + b^2 = c^2

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use an invisible sprite that checks for collison then check how much die(ce) space is left if 1 then present up or down

    else blah blah blah

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)