Properties for Scroll To ?

Discussion and feedback on Construct 2

Post » Thu Nov 10, 2011 7:46 am

Is there a plan to add some properties to the Scroll to Behavior? Im thinking about a delay. That the "camera" feels more realistic.

Example:
Player is not moving: Camera is on Player
Player starts moving...
1..2. Camera is following

Would be a nice feautere.
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Thu Nov 10, 2011 8:37 am

Yeah, a nice lag and custom scroll speed would be useful.
B
28
S
7
G
7
Posts: 102
Reputation: 6,483

Post » Thu Nov 10, 2011 8:48 am

This is something you could(should ?) make in events.
Instead of having the "scroll to" behavior on the character itself, put it on some sprite ("camera" for example) that you set to invisible.

From here you can set events specificaly for the camera. Some ticks you will want the camera to be placed at your character's position, some ticks you will want it elsewhere.

Example of some camera delay
From there, it's up to you to tweak your way and find the nicest/smoothest implementation possible.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Nov 10, 2011 10:00 am

Excellent, Kyatric. Makes sense.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Nov 10, 2011 4:02 pm

TastyBytes2011-11-10 16:02:27
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Thu Nov 10, 2011 11:27 pm

It did a similar thing here, created a sprite as a camera and used that as a scroll to, i set it like an adventure game, so it goes from screen to screen. I left the camera slightly visible so you can see it.

What i did was an event that if player x => camera x+300 then set camera x to camera x + 640 and obviously if its =< -300 then it goes back.

see the efect here
http://dl.dropbox.com/u/44766364/Games/M2S%20Test/index.htmltonycrew2011-11-10 23:28:08
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Thu Nov 10, 2011 11:56 pm

I used to use this method in MMF.
A camera plugin like the one in CC would be awesome though.
B
47
S
10
G
6
Posts: 455
Reputation: 8,326


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests