Infinite horizontal scroll with wrap

Get help using Construct 2

Post » Tue Jun 18, 2013 8:53 am

Having searched the forum, I hadn't seen an answer to this yet....

I am trying to do a horizontal scroller with a layout that wraps on itself. The player is always centered, flying through the environment. If you were to continue in one direction, an enemy you pass will reappear as you wrap around. I tried this using the Wrap To Layout behavior but there is a discontinuity at the wrap point. Enemies on the "other side" of the wrap don't appear until you cross over and then the ones on the other side disappear. Attached is my basic example...

https://dl.dropboxusercontent.com/s/fayaw4psqtcts97/testscroll2.capx?token_hash=AAGUIma3gdw0oE4A3WYR6ZOzq0rH7IEV9TSh3ctJSLozQA&dl=1

The scolling at the discontinuity is not smooth either. There is a little glitch, particularly with physics involved. Am I doing something wrong? Is there a much better way? Note that whatever the solution is, the enemies need to be able to do there own motions and behaviors. Thanks for any help!
B
6
S
1
Posts: 8
Reputation: 414

Return to How do I....?

Who is online

Users browsing this forum: Benjo11, Fasold, Yahoo [Bot] and 1 guest