How do I set scale to Y position

Get help using Construct 2

Post » Fri Aug 14, 2015 11:37 pm

I was trying to create a sense of depth recently, by setting the scale of an object to it's Y coordinates (as it reaches the top of the screen it gets bigger and visa versa), but I was pretty unsuccessful lol. Can someone help me get on the right track?

Thanks in advanced!
B
69
S
40
G
24
Posts: 356
Reputation: 18,314

Post » Sat Aug 15, 2015 12:02 am

depth is hard to do, but I think the best way would be creating animation using sprites, visually would be much better than so could apply some other effects like shadow eg
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Post » Sat Aug 15, 2015 12:06 am

Well, this would be an object that you could touch, I wanted to be able to flick it away and have it get smaller as it goes to the bottom of the screen.
B
69
S
40
G
24
Posts: 356
Reputation: 18,314

Post » Sat Aug 15, 2015 1:06 am

You can try to define a maximum size (MaxSize) and a minimum size (MinSize) for your sprites. Then you change the size inversely proportional to the position on the Y axis with MaxSize and MinSize as higher and lower limits
(I do not know if I am understandable , difficult to translate it into English)
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Post » Sat Aug 15, 2015 2:06 am

I will experiment with that, thanks!
B
69
S
40
G
24
Posts: 356
Reputation: 18,314


Return to How do I....?

Who is online

Users browsing this forum: warmty and 11 guests