Properties for Scroll To ? Forum Home > Construct 2 General > Construct 2 general |
Post Reply
|
| Author | |
Post Options
Quote Reply
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. |
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Nov 2011 at 8:37am |
|
|
Yeah, a nice lag and custom scroll speed would be useful.
|
|
![]() |
|
Post Options
Quote Reply
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. |
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Nov 2011 at 10:00am |
|
|
Excellent, Kyatric. Makes sense.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 10 Nov 2011 at 4:02pm |
|
![]() Edited by TastyBytes - 10 Nov 2011 at 4:02pm |
|
![]() |
|
Post Options
Quote Reply
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) |
|
![]() |
|
Post Options
Quote Reply
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. |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |