Enable and Disable Scroll to behavior at run time?

Get help using Construct 2

Post » Sat Mar 16, 2013 1:08 am

Is it possible to do this? Or do I have to make an every tick->scroll to action that gets enabled and disabled?
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Sat Mar 16, 2013 1:20 am

You don't need a behavior for scrolling , check out the scrolling actions in the system ... You can scroll to any given X/Y position and it's toggle-able at your choice ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sat Mar 16, 2013 4:14 am

I believe he's asking about the actual Behavior:ScrollTo.

To answer your question, @Yttermayn, there is not an action or property at run time to disable scroll to on an object.

Depending on your needs you can use an invisible object that has the ScrollTo behavior, and just put that where you want to view.

For example, in the roguelike I'm writing, I've got a sprite that is a frame that is the same size as the player and the mobs which has the ScrollTo behavior. Most of the time, it is set to invisible and is at the same position as the Player, but when the player is in the free look mode, it becomes visible and it moves while the player stays still.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Sat Mar 16, 2013 10:03 pm

Theubie: Yes, I thought maybe that was the case. I'll have to use the functions Whiteclaws mentioned to make it happen myself. Thanks!
Also, theubie, I wouldn't mind taking a peek at your roguelike, if you didn't mind...
B
11
S
4
G
1
Posts: 159
Reputation: 1,803


Return to How do I....?

Who is online

Users browsing this forum: Ahr Ech, benajad, R0J0hound, shinkan, Yahoo [Bot] and 23 guests