0 Favourites

How do I check if player is over a specific jumpthru object?

  • I want to know if the player is over a specific object.

    The player has platform behaviour, and the other objects has the jump-thru behaviour.

    Thanks

  • Use another invisible sprite on top of the platform and check for overlap.

  • You can also check for an overlap at offset.

    If player platform is overlapping jumpthru at, X=0 Y=4 (for instance) then (whatever action you're hoping for)

  • You can also check for an overlap at offset.

    If player platform is overlapping jumpthru at, X=0 Y=4 (for instance) then (whatever action you're hoping for)

    Yup that works too but I was thinking if you create an invisible sprite to check overlap you could use it for many platforms that might be at different positions on the screen so no writing additional events to check overlap at offset.

    It is just something I use a lot in platformers and blank sprite triggers are very convenient.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Use another invisible sprite on top of the platform and check for overlap.

    thanks, good idea

  • > You can also check for an overlap at offset.

    >

    > If player platform is overlapping jumpthru at, X=0 Y=4 (for instance) then (whatever action you're hoping for)

    >

    Yup that works too but I was thinking if you create an invisible sprite to check overlap you could use it for many platforms that might be at different positions on the screen so no writing additional events to check overlap at offset.

    It is just something I use a lot in platformers and blank sprite triggers are very convenient.

    I get the feeling code will be necessary regardless. I suggested the overlap at offset to avoid collision checks. Whatever's clever though - if it doesn't impact performance for OP then it's moot.

  • Overlap at offset +1

    If you will expand your game and will have multiple objects with "sensors" - it will be hell to set them one by one.

    Better to put the kinds of objects you want to "sense" in a family and make one "Overlap at offset" condition on the family to cover all the possible future expansions.

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
0 Favourites
[plugin] Youtube player
175 20,551
rexrainbow's avatar
rexrainbow
Unread hot topic
99 10,155
karshinkoff's avatar
karshinkoff
Unread hot topic
167 14,516
DMT2005's avatar
DMT2005