[Feature Request] Scroll To Properties

Discussion and feedback on Construct 2

Post » Sat Apr 18, 2015 3:52 pm

Hi

It think it would be a nice feature if you could set new properties to the Scroll To behaviour

The properties would be:
1. Scroll Horizontal (Yes/No)
2. Scroll Vertical (Yes/No)

This new properties would be very useful, because sometimes you just want to scroll just on an axis (X or Y) not on both

For example:
In a platform game: You could set Horizontal (Yes) and Vertical to (No) since it's annoying to scroll vertical everytime you jump

And for compatibility issues those new properties should be set to yes
Thanks
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Sat Apr 18, 2015 4:04 pm

Do you want me to edit this behavior for you? I can make this behavior if you want
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431

Post » Sat Apr 18, 2015 4:35 pm

Or you could do it with an event.

Something like:

every tick > system > scroll to x > player.x

This can be modified as well. For example, you could do "player.x -50" to move the camera up higher. You could also play with lerp or other variables down the road.
B
75
S
30
G
35
Posts: 340
Reputation: 22,896

Post » Sat Apr 18, 2015 4:50 pm

@Naji
Do you mean, edit the Scroll To behaviour?
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Sat Apr 18, 2015 4:53 pm

Anyway to make an object like a sprite or tilemap only solid for the camera or another specific object?

Kind of like how Unity has those properties where you can turn collisions on and off for different types.

E.g. you have a wall, solid sprite, which the player can go through, but enemies can't. And vice versa.
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
B
22
S
7
G
1
Posts: 558
Reputation: 2,925

Post » Sat Apr 18, 2015 5:24 pm

Iolva wrote:@Naji
Do you mean, edit the Scroll To behaviour?

Yes a custom made behavior for you and all the community. you will get your behavior and I gain experience. what do you think?
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431

Post » Sat Apr 18, 2015 6:12 pm

+If Scroll_Horiz = 1
-Set ScrollX to Player.X

+If Scroll_Vert = 1
-Set ScrollY to Player.Y

Some behaviors serve only to limit your options and save a few clicks...
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Sat Apr 18, 2015 7:36 pm

@Naji
Sure!
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Sun Apr 19, 2015 11:26 pm

This can easily be done in the even sheet, as described above.

@Naji There was a post by @Ashley which asked devs not to create plugins or behaviours similar to those included in C2. Can't find the post right now, but I remember reading it.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Mon Apr 20, 2015 12:13 am

New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 29 guests