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
55
S
32
G
23
Posts: 333
Reputation: 16,616

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
29
S
9
G
3
Posts: 280
Reputation: 4,187

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
55
S
32
G
23
Posts: 333
Reputation: 16,616

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
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Sat Aug 15, 2015 2:06 am

I will experiment with that, thanks!
B
55
S
32
G
23
Posts: 333
Reputation: 16,616


Return to How do I....?

Who is online

Users browsing this forum: DarkRoomGames, ismailsawan, mekonbekon and 11 guests