How do I have Bullet Behavior without rotation.

Just started using Construct 2? Post your questions here

Post » Wed Mar 09, 2016 5:18 am

Message: Justin64 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I'm currently making a game based off the https://www.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?
B
12
S
2
Posts: 33
Reputation: 714

Post » Wed Mar 09, 2016 11:16 am

Just change "Set angle" to No in the object's properties for the bullet behavior (same place you can set initial speed, etc.).
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Thu Mar 10, 2016 12:12 am

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
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu Mar 10, 2016 12:57 am

Landermere wrote: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?
B
12
S
2
Posts: 33
Reputation: 714

Post » Thu Mar 10, 2016 1:36 am

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 :)
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu Mar 10, 2016 1:50 am

you could use Containers
Image Image
B
26
S
15
G
143
Posts: 882
Reputation: 74,562

Post » Thu Mar 10, 2016 1:57 am

Message: Landermere can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Here we go :)

http://pasteboard.co/29mrjs6N.png
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu Mar 10, 2016 1:59 am

wow...I actually forgot about containers.... Nice :) Yer they will work hehe
B
8
S
1
Posts: 46
Reputation: 544

Post » Sun Mar 13, 2016 1:04 am

Thanks guys! That did the trick! :D
B
12
S
2
Posts: 33
Reputation: 714


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests