Page 1 of 1

[SOLVED] Scroll to, shake and unbounded layout.

PostPosted: Tue Feb 23, 2016 12:31 pm
by pontolix
I'm having an issue(?) with shake action. This is an example:

https:*//www.dropbox.com/s/9t37unvhaa4snog/collisions.capx?dl=0

(my reputation is under 500 :oops: , so i can't post links, to try the capx, remove *)

It 's a basic racing game, with only one event: when the car collides with a barrier, I want the screen to shake. The problem is that the collision with some barrier doesn't cause the screen to shake. Try it yourself smashing the car in to top screen barriers.
The barriers are multiple instances of the same object. Why some collisions invoke the shake behavior and some others not? :shock: I've tried to change the barrier sprite dimensions, but doesn't seem to work anyway.
I'dont know where the error is.
I'll appreciate any help. :D

Thank you!!

Re: Scroll to behavior:how to use shake?

PostPosted: Tue Feb 23, 2016 12:44 pm
by Anonnymitet
Have you set unbounded scrolling to "Yes" under the layout properties? I haven't tried your capx but that usually is the problem :)

Re: Scroll to behavior:how to use shake?

PostPosted: Tue Feb 23, 2016 2:03 pm
by pontolix
:oops: Thank you! it works like a charm.... :oops:
I'll change the title...maybe it can help other newbies like me...
Thanks again!!

Re: [SOLVED] Scroll to, shake and unbounded layout.

PostPosted: Tue Feb 23, 2016 2:12 pm
by Anonnymitet
Glad it worked for you. Good luck with your project :)