How do I infinte scroll in any direction?

Get help using Construct 2

Post » Sat Dec 12, 2015 9:31 pm

Hi, how do i infinte scroll in any direction, like an infinite runner but 360 degrees.

I have tried using like a trigger box, for example;

object on collision with trigger box (just a blank sprite)
- destroy object
- create object (opposite side of layout to carry on the scroll)

this works for the first time and then it doesnt work again, any idea? or better ways of doing it?

Thank you
B
7
Posts: 54
Reputation: 377

Post » Sat Dec 12, 2015 9:58 pm

Do you mean something like the wrap behaviour?
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 » Sat Dec 12, 2015 11:00 pm

no so like im working on a space game but realised its too demanding to make loads of planets on one big map so instead i want it to randomly spawn different planets to come on to the screen when moving.. so like an infinite runner, how it randomly spawns platforms... except this is for all 360 degree direction.
B
7
Posts: 54
Reputation: 377

Post » Sat Dec 12, 2015 11:11 pm

How does an endless runner work if it's not side-scrolling? *confused*
B
44
S
14
G
60
Posts: 1,791
Reputation: 36,380

Post » Sun Dec 13, 2015 12:13 am

sorry i should have been more clear, i meant the same mechanics as how it randomly generates objects off the screen.

so say if i held down the key "D" from WASD keys to move right, i move the planets left and when the planet leaves the layout i want another random one to spawn at the far right. I want this to happen in whatever direction i move.

It seems like it should be simple but i dont understand why it isnt working.
B
7
Posts: 54
Reputation: 377

Post » Sun Dec 13, 2015 12:49 am

Hmm your original idea sounds OK for this then, probably just requires some debugging? Provide a cut down .capx with the trigger sprite mechanic and someone can take a look and maybe provide a fix.
B
44
S
14
G
60
Posts: 1,791
Reputation: 36,380


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, krombanna and 8 guests