How can I make my object not be stuck when bounced

Get help using Construct 2

Post » Thu Feb 23, 2017 11:16 pm

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:
B
10
S
2
Posts: 7
Reputation: 570

Post » Thu Feb 23, 2017 11:22 pm

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.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Thu Feb 23, 2017 11:47 pm

I send u PM
B
10
S
2
Posts: 7
Reputation: 570

Post » Fri Feb 24, 2017 1:06 am

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!
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests