control a bouncing ball

Get help using Construct 2

Post » Sat Mar 29, 2014 8:29 pm

I can move it with platform
I can make it bounce
but I can't do both

meaning that if I add controls to a bouncing ball, I can control the ball but then it loses it's bounce.
any ideas?
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Sat Mar 29, 2014 8:52 pm

If you don't post a .capx its hard to know exactly what you're doing and what's the problem (you could be using any kind of weird event to move the ball and how would I know?)
You can post a .capx using the "upload attachment" option when posting
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat Mar 29, 2014 8:55 pm

I did not understand, however I did an example where I can touch the ball and change its position.

GaloDoido794_BouncingBall_Touch_Position.capx


Hope that helps.
You do not have the required permissions to view the files attached to this post.
B
5
G
1
Posts: 23
Reputation: 398

Post » Sat Mar 29, 2014 9:01 pm

https://db.tt/pq0AIU2e
it's just a ball that bounces.
I'm trying to add behaviors so I can control the ball and still keep it's bounce.
When I try to add platform or 8 direction o it.
It bounces until I use the keyboard to try to control it. Then it stops bouncing
B
7
S
2
Posts: 158
Reputation: 1,021

Post » Sat Mar 29, 2014 9:17 pm

The Physics behavior is handled by the Box2D engine and is not compatible with other behaviors. Check the manual: https://www.scirra.com/manual/98/physics
If you use physics you have to control every movement with the physics actions

(also, you can upload your .capx using the "Upload Attachment" option when posting)
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat Mar 29, 2014 9:19 pm

hopr37 wrote:https://db.tt/pq0AIU2e
it's just a ball that bounces.
I'm trying to add behaviors so I can control the ball and still keep it's bounce.
When I try to add platform or 8 direction o it.
It bounces until I use the keyboard to try to control it. Then it stops bouncing
You do not have the required permissions to view the files attached to this post.
B
83
S
32
G
24
Posts: 121
Reputation: 15,541

Post » Sat Mar 29, 2014 9:45 pm

@kastas.
Thank you. That's what I was looking for.
I wasn't adding the "platform is on floor"
I din't need the physics. Just thought I did
B
7
S
2
Posts: 158
Reputation: 1,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests