How do I make endless road like kamikaze race?

Just started using Construct 2? Post your questions here

Post » Wed Sep 03, 2014 4:43 pm

I mean, the road will be endless for up. How can i make?

Thanks
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Wed Sep 03, 2014 5:14 pm

have you seen the endless runner example shipped with construct2?
It has an endless background, implementation would be about the same..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 03, 2014 5:35 pm

If you mean autorunner, yes i saw.

But it's going to right, and no matter how much try, i cant make it go down :(
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Wed Sep 03, 2014 5:40 pm

It's the same principle..

instead of moving left (180 degrees) you want to move down (90 degrees)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 03, 2014 5:55 pm

Thanks, but

How do i make the tiled background continue viewing on the screen? I don't know how to explain, but;

TiledBackground <_ -SelfWidth/2 ---- TiledBackground Set X to Self.X + Self.Width/2

how can i convert this to Y?
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Wed Sep 03, 2014 6:04 pm

Should be something like this:

TiledBackground.y > Self.Height/2 ---- TiledBackground Set y to Self.y - Self.Height/2

When going left x gets smaller, but when going down y gets bigger, so width should be replaced by height and + by - and < by bigger >

I might have done it too fast, so there could be some typing errors, but with the above you should be able to figure it out..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 03, 2014 6:18 pm

LittleStain wrote:Should be something like this:

TiledBackground.y > Self.Height/2 ---- TiledBackground Set y to Self.y - Self.Height/2

When going left x gets smaller, but when going down y gets bigger, so width should be replaced by height and + by - and < by bigger >

I might have done it too fast, so there could be some typing errors, but with the above you should be able to figure it out..


Thanks a lot! It's working, but with a little problem :P

BG disappears for a bit after some seconds. How can i fix this?
You do not have the required permissions to view the files attached to this post.
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Wed Sep 03, 2014 6:41 pm

the tiledbackground should be exactly four times the original image height here..
changed it to y > 0, just because it works..
You do not have the required permissions to view the files attached to this post.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 03, 2014 6:54 pm

It works ! thanks a lot
B
18
S
2
G
1
Posts: 67
Reputation: 1,339


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest