Help with a auto scrolling game

Just started using Construct 2? Post your questions here

Post » Thu Aug 21, 2014 5:39 am

I started making an auto scrolling game, and I have some problems.

Whenever I jump, I just jump straight, but I want to make it so it jumps to the right. How do I do that?

You can use the file attachment if you like.
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 16
Reputation: 457

Post » Thu Aug 21, 2014 5:52 am

Player platform is jumping - simulate pressing right.

or, copy your second event and invert it (in which case, simulate pressing right should just be an every tick event).
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Thu Aug 21, 2014 5:59 am

Thanks, it worked, but when I jump, the scrolling is kind of weird. Again, the attachment.
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 16
Reputation: 457

Post » Thu Aug 21, 2014 6:04 am

if you want the player to continue moving right when falling, as well, then use my second suggestion. if you want the player to always be moving right, no matter what, then just make it pressing right always.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Thu Aug 21, 2014 6:07 am

That also doesn't work. When the player jumps, it should go smoothly, but the screen just scrolls.
B
5
S
1
Posts: 16
Reputation: 457

Post » Thu Aug 21, 2014 6:11 am

Not sure what you're after, you've got the blocks bulleting across the screen left and a the player goes right with scrollto on it. pretty simple. not sure what the problem is?
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Thu Aug 21, 2014 6:14 am

So, when I jump inside the window screen, I get a smooth scroll, but when I go outside of that and jump, it's different compared to the one inside the window screen.
B
5
S
1
Posts: 16
Reputation: 457

Post » Thu Aug 21, 2014 6:17 am

I'm still not really sure what you're saying. But maybe try changing the platform properties. jump strength and acceleration and such..
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Thu Aug 21, 2014 12:45 pm

You don't need event 5 and event 2's condition should be a "System: Every tick" condition.
You want the player to go right every tick.

There is still a "friction" issue, due, I believe to the value of the deceleration platform property that does not apply when the player is in the air.

Also, I'd suggest you'd actually look at the "Auto-runner template" that you have access to when you start a new project.
You will see a recommended way to do a smooth auto-scroller.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Thu Aug 21, 2014 4:51 pm

Thanks, I used the template and it worked.

I've got 2 more questions:

How do I make a wall so the player doesn't go off screen?

Because the game I'm making is like the impossible game.

And,

When I play it, there is some kind of invisible wall that doesn't let the player advance.

The attachment.
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 16
Reputation: 457

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests