0 Favourites

Physics object "bounce"

This forum is currently in read-only mode.
  • I'm a little hesitant to post a new topic, 'cause my problem seems simple enough that I'm surprised I haven't found a solution in the forums. It doesn't seem to be here yet though, so:

    My game involves a hammer being thrown around by the player, which works fine using the physics behaviour and some "add force" events, but my problem is that the hammer passes straight through solid objects.

    The only solution I can think of is to destroy the hammer on impact and replace it with a static sprite, but what I really want is for the hammer to bounce around a little before coming to rest, which I can't figure out how to do with the physics behaviour.

    Any help / suggestions would be great.

  • Physics objects only see physics objects. you'll have to make everything immovable (physics) for it to react to them. Or fake it with events.

  • I've tried adding the physics behaviour to all the other solid objects, but that makes the player slide slowly to the left for reasons I don't hope to understand.

    I've heard (read) mention of people faking platform behaviour with physics and events, would that be doable/easier than faking the bouncing itself?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I've tried adding the physics behaviour to all the other solid objects, but that makes the player slide slowly to the left for reasons I don't hope to understand.

    I've heard (read) mention of people faking platform behaviour with physics and events, would that be doable/easier than faking the bouncing itself?

    I've heard a few times that physics for platform games (while possible) isn't recommended. Faking the bounce would probably, ultimately, be less hassle.

  • Alright, I'll try that. Thanks .

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,941 263,233
FlyingRam's avatar
FlyingRam
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,484
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[BEHAVIOR] Sonic Physics
126 31,158
Ostrich10164's avatar
Ostrich10164