How do I have Bullet Behavior without rotation.

0 favourites
  • 9 posts
From the Asset Store
In this template the music plays without looping in your game
  • I'm currently making a game based off the scirra.com/tutorials/37/beginners-guide-to-construct-2/page-3 Top Down Shooter tutorial, I'm using Bullet Behavior for the enemies' AI. I want to know if it's possible to have the enemy's image not rotate while moving around at different angles. Or should I use a different behavior for the enemy AI to accomplish this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just change "Set angle" to No in the object's properties for the bullet behavior (same place you can set initial speed, etc.).

  • Something I use myself is to divide player's and enemy alike into 2 different events.

    One controls movement and the other control the animations

    On the start of the layout all you need to is pin the animation events to the movement events

    By doing this you can perform all the actions you wish them to carry out without actually making their visuals alter too much

    Good luck!

    Chris

  • Something I use myself is to divide player's and enemy alike into 2 different events.

    One controls movement and the other control the animations

    On the start of the layout all you need to is pin the animation events to the movement events

    By doing this you can perform all the actions you wish them to carry out without actually making their visuals alter too much

    Good luck!

    Chris

    Thanks! I tried that and it worked!

    I have this issue though. I've set it for every 3 seconds: It'll spawn the enemy box/enemy movement event and it's animation event. Once the player defeats the enemy, the hit box gets destroyed but the animation stays in place. I've added the event once the hitbox gets destroyed, destroy the animation. However it effects all the enemies animations as well. How do I fix this?

  • I'm really pleased it worked for you

    Your issue on the other hand doesn't sound like it works for you lmao.

    quick resolve for now; before the enemy is destroyed, try teleporting the enemy outside of the layout (with the pinned animation) and have the animation have the behaviour "Destroy outside layout"

    not the most optimal way but that will work.

    I will come up with a better solution for you

  • you could use Containers

  • Here we go <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    pasteboard.co/29mrjs6N.png

  • wow...I actually forgot about containers.... Nice Yer they will work hehe

  • Thanks guys! That did the trick!

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