How do I infinte scroll in any direction?

0 favourites
  • 6 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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

  • Do you mean something like the wrap behaviour?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • How does an endless runner work if it's not side-scrolling? *confused*

  • 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.

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)