Physics Movement

For questions about using Classic.

Post » Thu Jun 03, 2010 4:23 am

Firstly,
When using the physics movement for a block, it basically just falls through the ground I've created and that can be run on by the player sprite (that uses the platformer behavior). Any help as to why this might be would be appreciated as I suppose I could make an event for it, but I feel like that's weird to see.

P.S. The block has been set to solid/not solid and that didn't fix it.

P.S.S. Sorry if this was asked before, but I couldn't find it.

e: second issue was jsut a bad condition.
B
1
G
2
Posts: 3
Reputation: 631

Post » Thu Jun 03, 2010 4:35 am

For a physics object to interact with another one, that object also needs the physics behaviour.
So you need to add the physics behaviour to your ground object and set it as immovable so that it's not affected by gravity.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Thu Jun 03, 2010 5:31 am

Well, that solved it, but it seems like physics are really weird at the moment for me. Having a block fall on another block has it shoot up into the sky (if it falls on a corner). It's pretty strange.
B
1
G
2
Posts: 3
Reputation: 631

Post » Thu Jun 03, 2010 6:40 am

Do you mean one physics block colliding with another physics block?

Without more info or a .cap it's hard to tell what wrong. But if it's one physics object and one without physics it's going to be weird since physics works with forces, rather than just moving the object on a pixel-pixel basis. So if you want to interact with it you'll have to use the physics behaviours actions, like set force/velocity. Anything else screws with the physics calculations.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Fri Jun 04, 2010 12:00 am

Physics does seem to "play nice" with other behaviors. Why not post your cap so we can see?
B
28
S
8
G
8
Posts: 530
Reputation: 7,154


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests