size

Get help using Construct 2

Post » Mon Jun 03, 2013 11:42 am

i want my character to shrink size has he walks to a certain part, how can i do this?

example: from point A to B my character has to shrink from 200 to 100 and then go to 300 and stay there.. i dont know if im explaining well.. but i hope someone can help me
B
5
Posts: 77
Reputation: 604

Post » Mon Jun 03, 2013 1:32 pm

make a trigger. Make initial value for visible = invisible.
Then when character overlaps it shrink him as much as you want set size = player.width/2 & player.height/2. When he gets over another trigger do multiply by 2. Found a simple way. You can even just scale it.

And f you want him to run by himself just use platform simulate movement for a few seconds or untill a point is reached.
can't post links yet but just copy paste this...

https://dl.dropboxusercontent.com/u/3961018/smallbig.capxmrPeanut2013-06-03 14:05:56
B
9
S
3
G
3
Posts: 70
Reputation: 1,990

Post » Mon Jun 03, 2013 2:40 pm

[QUOTE=mrPeanut] make a trigger. Make initial value for visible = invisible.
Then when character overlaps it shrink him as much as you want set size = player.width/2 & player.height/2. When he gets over another trigger do multiply by 2. Found a simple way. You can even just scale it.

And f you want him to run by himself just use platform simulate movement for a few seconds or untill a point is reached.
can't post links yet but just copy paste this...

https://dl.dropboxusercontent.com/u/3961018/smallbig.capx[/QUOTE]

nice, this is indeed what i want, but i need to make it smoother, like
from 100 to 50, every step i take decreases 1
so, 99,98,etc.. until i reach 50

how can i do that?
B
5
Posts: 77
Reputation: 604

Post » Mon Jun 03, 2013 5:15 pm

here is a small extended version with over time sizing. Info in the comments on the events.
https://dl.dropboxusercontent.com/u/3961018/bigsmallextended.capx
B
9
S
3
G
3
Posts: 70
Reputation: 1,990

Post » Mon Jun 03, 2013 8:55 pm

yes, it works, thanks :)
B
5
Posts: 77
Reputation: 604

Post » Mon Jun 03, 2013 8:57 pm

you're welcome ;).
B
9
S
3
G
3
Posts: 70
Reputation: 1,990

Post » Mon Jun 03, 2013 10:09 pm

I edited your capx @mrPeanut to make a kind of zone that scales the player as you move through it. I was thinking of the way Rayman scales down and up when you enter and leave certain areas.
playerScaling.capx
B
55
S
28
G
18
Posts: 1,520
Reputation: 25,305

Post » Mon Jun 03, 2013 10:13 pm

awesome @ramones. Like the edit a lot ;). mrPeanut2013-06-03 22:17:10
B
9
S
3
G
3
Posts: 70
Reputation: 1,990


Return to How do I....?

Who is online

Users browsing this forum: hielo777, keeno79, smlyldz and 12 guests