Scroll to issues

Get help using Construct 2

Post » Sat Jan 23, 2016 8:01 am

I'm working on a top down RPG and I'm wondering if i can use "scroll to" to follow my player but only move when the player leaves the 16x16 tile room, currently I'm using a large layout and I'm connecting rooms that are all 16x16 tiles but you can see into the next rooms if I use the standard scroll to behavior. the room fades as the player enters the door and is teleported so, no animation required just a simple snap to the next room would be sufficient. Thanks in advance!

EDIT: the zone-camera capx didnt seem like it was what i was looking for either so just clarifying that.
B
6
S
1
Posts: 17
Reputation: 391

Post » Sat Jan 23, 2016 1:14 pm

perhaps use something like this

Code: Select all
System Every tick --> (system scroll to position)

X lerp(scrollx,Player.X,dt*dist)
Y lerp(scrolly,Player.Y,dt*dist)


Where dist is the distance in pixels in x & y
B
39
S
10
G
14
Posts: 488
Reputation: 10,270


Return to How do I....?

Who is online

Users browsing this forum: AllanR, bikachu, oosyrag, wirelesstkd and 1 guest