How do I change direction of movement

0 favourites
  • 4 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • This may be a little hard to explain but I'll try my best.

    When you click on any object in the center there is a small box with a line connected to a white slightly larger box. My post has to do with the white slightly larger box.

    First of all, what is it called? What all can it do? From my understanding this is the direction that the sprite will move when given the bullet behavior.

    By default it is always pointed to the right. The only way I know to change this is to drag it and move it say 180 degrees so it is pointing to the left. The only problem with this is that I then have to change the animation of the sprite 180 degrees as well.

    It just seems like I am missing something or that there is a better way. Any suggestions?

  • Hi adamebastin !

    As long as I know, there is no way to prevent the animation to rotate according to the angle of its object. However, there are ways to move an object in a direction ignoring its current angle. So the question is, what type of move do you want your object to do?

  • Very interesting. I did just discover that it was the angle that I was referring to.

    Well the thing is I have a sprite that has animations like "move right" and "move left". So they look different depending on if they are moving left or moving right.

    I like your suggestion. What are the easiest methods to move an object in a direction ignoring its current angle?

    I was just going to use it for an enemy. It was going to move left once the player is in its LOS.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Based on 8-direction behavior, once you've set the property "Set Angle" to "No" within the behavior, you can make events like those.

    ____________________________________________________

    You can also make movements with "Custom Movements", "Platform" and "Bullet" behaviors. It's up to you to choose the one that fits your needs the best.

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