How do I Move a Sprite and Not Rotate

0 favourites
  • 4 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • Hey there,

    So, I created an "AI" of sorts, specifically, a move-to player action. As you can see below, the monster sets the angle towards the player and then moves toward the player, one pixel per tick. This has been fine for a while, but now I need the Monster to stop changing it's angle.

    I went through all of the actions but I just can't seem to find one that will allow LOS movement towards the Player, without changing the angle of the object being moved. Can anyone help?

    Thank You,

    Stephen

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Instead of having it set the angle and move forward, could you just have it move at the angle (monster.x,monster.y,player.x,player.y)?

  • Hey there,

    So, I created an "AI" of sorts, specifically, a move-to player action. As you can see below, the monster sets the angle towards the player and then moves toward the player, one pixel per tick. This has been fine for a while, but now I need the Monster to stop changing it's angle.

    I went through all of the actions but I just can't seem to find one that will allow LOS movement towards the Player, without changing the angle of the object being moved. Can anyone help?

    Thank You,

    Stephen

    Hey Tekniko, you can also use the BULLET plugin.

    If overlapping at offest, set bullet speed to [whatever you want]

    If x overlapping at offest, set bullet speed to zero.

    Great thing about the bullet function is you can set the sprite to NON-ROTATING but still move towards player.

  • Thanks for the help. I ended up switching to 8 directional movement and programming my own logic.

    It does what I need it to do for now but I see issues down the road when it comes to path finding.

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