How do I make a three-lane runner?

0 favourites
  • 2 posts
From the Asset Store
A slots game template designed to be skin-able for mobile
  • I created the player movement (left and right arrow keys), and tried to make it have a smooth animation to the lane using the bullet behavior, but it only works when you go right, it does not work with the left. Another problem is when you press the left and right arrow keys too fast, the lanes end up breaking and the player touches the edges of the screen. I tried to fix it many times, but I end up breaking it more, any help is appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bullet is not a good choice for this. I suggest MoveTo behavior.

    On Left pressed
    Player is not moving : Player Move to (self.x-200, self.y)
    
    On Right pressed
    Player is not moving : Player Move to (self.x+200, self.y)
    

    Of course you can add other conditions checking if the player is already on the leftmost/rightmost lane.

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