Properties for Scroll To ?

Forum Home Forum Home > Construct 2 General > Construct 2 general
 Post Reply Post Reply
Author
2,156 Rep
Post Options Post Options   Quote TastyBytes Quote  Post ReplyReply Direct Link To This Post Topic: Properties for Scroll To ?
    Posted: 10 Nov 2011 at 7:46am
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.
Back to Top
3,579 Rep
Post Options Post Options   Quote plauk Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 8:37am
Yeah, a nice lag and custom scroll speed would be useful.
Oh, look a breakout clone!
Back to Top

Moderator
29,640 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 8:48am
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.
Back to Top
19,240 Rep
Post Options Post Options   Quote sqiddster Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 10:00am
Excellent, Kyatric. Makes sense.
Back to Top
2,156 Rep
Post Options Post Options   Quote TastyBytes Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 4:02pm


Edited by TastyBytes - 10 Nov 2011 at 4:02pm
Back to Top
6,876 Rep
Post Options Post Options   Quote tonycrew Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 11:27pm
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.html

Edited by tonycrew - 10 Nov 2011 at 11:28pm
http://dl.dropbox.com/u/44766364/Games/Space2011/index.html Space 2011 (C2 Competition Entry
http://dl.dropbox.com/u/44766364/Games/getin/index.html Get That Ball In (C2 Game)
Back to Top
5,655 Rep
Post Options Post Options   Quote VampyricalCurse Quote  Post ReplyReply Direct Link To This Post Posted: 10 Nov 2011 at 11:56pm
I used to use this method in MMF.
A camera plugin like the one in CC would be awesome though.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down