How do I keep this scrolling and spawning new platorms? capx

Get help using Construct 2

Post » Fri Nov 14, 2014 11:57 pm

i have tried everything and i can not get this right.
it stops scrolling at a certain point and i don't know how to get it to work right.
any help would be awesome.

https://www.dropbox.com/s/uumd8wyilwmdy ... .capx?dl=0
B
8
S
2
Posts: 54
Reputation: 1,001

Post » Sat Nov 15, 2014 1:20 am

hey etaprime
had a quick look at your capx..

the main issue i can see with the scrolling issue is your events in the scroll group

using the viewport as the base is restricting the scroll...because even though the layout is bigger..the viewport size is fixed..
so if you use that value ..it will always stop at the viewport x distance and go no further
does that make sense?

tried a little fix for the scrolling in your capx and commented my changes...
https://www.dropbox.com/s/w6f8i50vfbnro5n/stick%20upp%20update%201.capx?dl=0
the spawning issue is more complex because based on what I can see...you want different distances between each spawned ground block
you would need to alter the spawning to take into consideration the position of the last ground block and a random range of values to add to the new x spawn position.
I didnt change this because you may have other ideas for generating distances (a formula of increases perhaps)

hope that helps alittle
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Sat Nov 15, 2014 1:25 am

Thank you.
B
8
S
2
Posts: 54
Reputation: 1,001

Post » Sat Nov 15, 2014 4:02 am

You are welcome...etaprime

of course its just a teeny fix...you may want to play around with it to see what it does...

I also expanded the size of the layout and i think i set unbounded scrolling to "yes" because it may help
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 75 guests