Vector X Distance problem(Capx)

0 favourites
  • 2 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.
  • Hey guys, I'm having some trouble using the Vector X Platform.

    I'm trying to get my player to go further to the right(playerCollisionBox.Platform.VectorX+9000) while not mirrored by pressing U.

    The problem is that it goes the same distance as when the player is Mirrored to the left(playerCollisionBox.Platform.VectorX-2000) even though there is a big difference within both codes.   

    If i'm not explaining too well, here is a screenshot of the code and the capx file. Thanks         , on Flickr

    I'm still not allowed to post pictures? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The speed of the platform behavior is always limited by the Max speed property.

    One way to make it work is to do something like:

    playerCollision: Is animation attack playing
        local number attackSpeed = 0
        local number defaultSpeed = 0
        playerCollision: [invert] Is mirrored
            ->System: set attackSpeed to 9000
        playerCollision: Is mirrored    
            ->System: set attackSpeed to -2000
        -> System: set defaultSpeed to playerCollision.Platform.MaxSpeed
        -> playerCollision: set Platform maximum speed to attackSpeed
        -> wait 0.2 seconds
        -> playerCollision: set Platform maximum speed to defaultSpeed

    Be carefull, since you probably didn't know about the max speed issue, you probably set the speed way to high since it was always clamped to max speed which default to 330...

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