Page 2 of 2

Re: How can I make my object not be stuck when bounced

PostPosted: Thu Feb 23, 2017 11:16 pm
by Biohazapp
lamar wrote:
Biohazapp wrote:How do I say that when I touch the ceiling I put it in 1?



On player collision with ceiling: Set CeilingHit = 1


No have that condition only have "on player collision with another object" can u show me a imG plis!!!!! :oops: :oops: :oops: :oops:

Re: How can I make my object not be stuck when bounced

PostPosted: Thu Feb 23, 2017 11:22 pm
by lamar
Biohazapp wrote:
lamar wrote:
Biohazapp wrote:How do I say that when I touch the ceiling I put it in 1?



On player collision with ceiling: Set CeilingHit = 1


No have that condition only have "on player collision with another object" can u show me a imG plis!!!!! :oops: :oops: :oops: :oops:



You have to set the variable and it does not use ELSE

I would have to see your capx to see what you have going on.

Re: How can I make my object not be stuck when bounced

PostPosted: Thu Feb 23, 2017 11:47 pm
by Biohazapp
I send u PM

Re: How can I make my object not be stuck when bounced

PostPosted: Fri Feb 24, 2017 1:06 am
by lamar
Biohazapp wrote:I send u PM


OK I looked over your capx and you are using a custom movement with Sine and it is that sine that is causing the problem.

I sent you a PM with the CAPX fixed. I created a ceiling sprite to detect when your player is at the ceiling. When player overlaps the ceiling I change the angle of motion in your custom movement to 90 degrees which is down and change speed to 100 so player just bobbles along at the ceiling. You can change that speed to suit what you want and make that sprite invisible.

No more stuck player. Pretty cool game!