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
20
S
10
G
10
Posts: 229
Reputation: 7,624

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.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
32
S
9
G
7
Posts: 444
Reputation: 6,731

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
20
S
10
G
10
Posts: 229
Reputation: 7,624


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest