Coins

Just started using Construct 2? Post your questions here

Post » Fri Jun 23, 2017 5:49 am

Hi guys have any of you played a game that when you collect a coin it shows a 100 that slowly gets bigger and fades. Here's an example https://www.youtube.com/watch?v=AiXLvl9atNI please help how would i be able to implement this in my game?
Image
B
25
S
14
G
12
Posts: 291
Reputation: 9,404

Post » Fri Jun 23, 2017 4:31 pm

@LaurenceBedford

Use a SpriteFont for the number which you spawn when you destroy the Coin, give it two Sine behaviours, one for Size and one for Height, and the Fade behaviour.

Set the Fade time to a quarter of the Sine period (so it only increases and moves up), e.g. 2sec Fade, 8sec Sine, and destroy it when the fade finishes.
Find all the Construct 2 games that were on Steam Greenlight here
B
33
S
9
G
7
Posts: 451
Reputation: 6,782

Post » Fri Jun 23, 2017 4:36 pm

@OddConfection thanks man I have implemented this in my game I just couldnt get the sine thing working but with your help it works now
Image
B
25
S
14
G
12
Posts: 291
Reputation: 9,404


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 5 guests