(SOLVED) How do I STOP a scrolling?

Get help using Construct 2

Post » Sat Dec 19, 2015 12:19 pm

Has is work for you?

The events I putted in?
B
6
S
2
Posts: 114
Reputation: 874

Post » Sat Dec 19, 2015 1:57 pm

yeah its working but now we changed the idea, the sprite has just to do a jump action and allways stay at the same position, never follow the scroll, i don't know how to achieve that here is my file https://www.dropbox.com/s/4pmjk7ggfu3g8ie/Tooth_3D_ENGINE_v04.capx?dl=0
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sat Dec 19, 2015 3:47 pm

i need just to do something like https://www.youtube.com/watch?v=nF7O2gqOEPc the ground is allways scrolling but the sprite stay at the same position and only jump.

can someone help with a little capx?

thanks
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sat Dec 19, 2015 4:41 pm

Although I'm not sure why your setup is the way it is, if you want to keep using it this way the easiest way would be to set the paralax of layer "Front" to 0,0 and add this event at the bottom of your event sheet

system every tick
> player set x = 429
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 19, 2015 4:52 pm

Thanks Littlestain :D i have another question d you know how to stop the scrolling objects for example after 10s?
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sat Dec 19, 2015 5:38 pm

Add a timer.
on timer set a variable.
Move things only when variable is a certain value..
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 19, 2015 8:11 pm

The prolem is my moving objects are using a Global constant number SCROLLSPEED= 100
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sat Dec 19, 2015 8:13 pm

And what exactly does that Global constant do and is there any specific reason it should be a constant?
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 19, 2015 8:19 pm

it gives the speed for the moving platform
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Sat Dec 19, 2015 8:29 pm

imothep85 wrote:it gives the speed for the moving platform


So, you should change that to change the speed..
Stopping the platforms would consist of changing the speed to 0..
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

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Fradno, marcinkowski, tarek2 and 12 guests