How do I get fireworks to go up then down upon destroy?

Get help using Construct 2

Post » Thu Sep 25, 2014 1:06 pm

Hi,

New to Construct...loving it so far.

In my first game I have my character colliding with a target object. In order to 'celebrate' the achievement I'd like a 'fireworks'.png to go off....ideally fireworks would briefly go up, then down and fade.

I can get the fireworks to appear via spawn another object...I can also get them to fade....but don't know how I can get them to firstly travel briefly up and then go down before fading.

Thanks for any clues!
B
3
Posts: 5
Reputation: 187

Post » Thu Sep 25, 2014 1:32 pm

Firework is active -> setfirework position (Self.x, Self.y - speed * dt)
X Firework is active -> setfirework position (Self.x, Self.y + speed * dt)
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Thu Sep 25, 2014 11:46 pm

Thanks for the reply Skelooth...think I need to watch some more tutorials first before I can understand how what you've written actually is plugged in! (ie. I don't really understand where I can even choose "firework is active")

I'm probably trying something which is currently a bit beyond my level of understanding:)

Anyway thanks for the pointer! Appreciate your time.
B
3
Posts: 5
Reputation: 187

Post » Fri Sep 26, 2014 12:25 am

Sorry I should have explained better.

Lets say you have a firework sprite, it looks like a rocket. It has an animation called explode as well. Your event sheet might look something "sort of like"

System->Every Tick
-> rockets animation = default -> rocket.y - speed * dt

-> rockets animation = explosion -> rocket.y + speed * dt

-> rocket height = top of sky -> rocket.set animation to explostion

https://www.scirra.com/manual/115/sprite
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Fri Sep 26, 2014 12:42 am

Just use particles, set the angle to 270 and it will go down and fade automatically.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests