side scrolling but coming towards you

Get help using Construct 2

Post » Thu Mar 13, 2014 3:03 pm

is there such a feature? Instead of side scrolling effect is there a front scrolling? Like things were getting bigger as they come towards you? or would you have to create that?
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Thu Mar 13, 2014 3:06 pm

I'm trying something similar. What I do is:

On every tick:

- set scale of object to: object.Y/600

This code will scale objects smaller as they are in the background and scale them bigger as they are in the front. You have to adjust the 600 to what looks best for your objects.

Instead of every tick you can use if the object moves. This would save performance. I didn't optimise my code yet.
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Thu Mar 13, 2014 3:26 pm

Alyra Games wrote:On every tick:

- set scale of object to: object.Y/600


Really? Will that make only that part to scale like a trapizium?
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Thu Mar 13, 2014 3:55 pm

Try "Set layout scale".
> 1 zoom in
< 1 zoom out

(You could also do this for layers, families, objects etc.)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027


Return to How do I....?

Who is online

Users browsing this forum: Nicolas951, Shenkai the ssj, Yahoo [Bot] and 23 guests