How do I increase my player size? HELP!!!

Get help using Construct 2

Post » Sat Oct 01, 2016 10:33 pm

Hello!

How do I increase my player size every time with 1% if on collision with a food object in the game?

Thank you for the answer!
B
20
S
10
G
10
Posts: 143
Reputation: 7,096

Post » Sun Oct 02, 2016 4:46 am

Add a scale var to your player, if you don't show the player at 1:1 at the start you need to set the initial value to the correct one else set it to 1, then on collision set this var to self*1.01 then set player scale to var value, you can do the last part on a every tick with dt and possibly lerping to get a more smooth growing transition.
Image
B
74
S
28
G
12
Posts: 515
Reputation: 12,359


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Shenkai the ssj and 25 guests