"Platform vector X" - problems with negative values

0 favourites
  • 4 posts
From the Asset Store
25 high-quality cars. This asset is perfect for a side scrolling game, or even a turn based RPG type game.
  • Problem Description

    Red box is not pushed back on the right side of the screen. Only left side is worked.

    Attach a Capx

    http://www.mediafire.com/download/ne7ha ... rmer2.capx

    Description of Capx

    Basic platformer with custom controls.

    Steps to Reproduce Bug

    • Start it.
    • Run to the left side.
    • Run to the right side.

    Observed Result

    Red box is not pushed back when you run to the right side.

    Expected Result

    Red box pushed back on both sides when you trying escape from big purple square.

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID


  • Is not a bug. You use the position of your sprite in the setting of the vector. So on the left side you have a vector of 0+330 on the ride side 2420-330 that is still a positive vector of 2090. That will kick you out of the right border.

    Delete the sprite.x in your 'set vectorX' and it should work.

  • Thank you! That help. But another thing happened. Now there is no difference between values in "vector X". I can type "-300" or "-2000" but the force of push back will be the same. I need to control distance of pushes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Because your MaxSpeed is set to 330. Change the MaxSpeed to 2000 and you will see a difference between 300 and 2000.

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