How do I Increase the size of an object...

Get help using Construct 2

Post » Sat May 30, 2015 10:19 pm

Hey guys! Confused newbie here...

How do I (continuously) Increase the size of an object on key pressed and then stop increasing size on key released?

Any help at all much appreciated!

Thanks in advance,

Stacey
B
4
Posts: 2
Reputation: 204

Post » Sat May 30, 2015 11:16 pm

On every tick, if the key is down increase the size by adding or multiplying something to the current size.

The event thing is run repeatedly every second, so you actually don't want to do anything when the key is up, you just want to change the size when the key is down.

Do not forget to adjust for dt :)
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Sun May 31, 2015 6:52 am

Here's a tutorial on how to make buttons bigger on touch. Forward to 4:02 and you'll what your goal is, and arrange the events to your liking by observing what he did to achieve it.

So basically, your gaining something from some else's mistake!

https://www.youtube.com/watch?v=ADzH2jQS0ek
Risk Rocket now available on Google Play
Image
B
35
S
15
G
6
Posts: 337
Reputation: 6,275

Post » Sun May 31, 2015 9:04 am

Thanks guys! I'll be giving it a try tonight :)
B
4
Posts: 2
Reputation: 204


Return to How do I....?

Who is online

Users browsing this forum: FlyingRam, jkmalau, MadSpy, Manubis and 12 guests