Solid error :(

This forum is currently in read-only mode.
  • hello guys! i have trouble with project,the platform player can't interactive with solid block. here :

    <img src="http://i28.lulzimg.com/f116eaf970.png" border="0" />

    test :

    <img src="http://i28.lulzimg.com/56d8b804a4.png" border="0" />

    how to fix that ? <img src="smileys/smiley19.gif" border="0" align="middle" />

  • I don't see any problem, can you post the cap?

  • The cap could be corrupted. If you delete all objects, create new ones, does it still persist? or if you create new cap? I'll pm one of the CC developers to look at your cap.

    Tip>Your player has solid ticked on, it doesn't need it as behaviors default setting is to collide with solid objects.

  • Could be a problem with collision masks.

    Try using a dummy sprite with platform behavior (invisible at start) and add an Every Tick event to set the character position to that of the dummy sprite. That works with your cap. You would then just handle the animations as usual depending upon direction.

  • zenox98 is right, I didn't look at the collision mask. If you change collisions from per pixel to bounding box or point it starts to detect solids, or create collision mask.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It looks like you used "Copy collision mask to each frame". It is currently broken and causes the collision mask of every frame to be empty.

    An oft used solution is to have a separate sprite for the collisions. Any behaviors are applied to the hitbox sprite, and player sprite's position, direction and animations are set with events.

    The events will look like this:

    + System: Always (every tick)

    -> Sprite: Set angle to hitbox.Angle

    -> Sprite: Set position to object hitbox (image point 0)

    + hitbox: [negated] is moving

    -> Sprite: Set animation to "idle"

    + hitbox: is walking

    -> Sprite: Set animation to "running"

    + hitbox: is falling

    -> Sprite: Set animation to "falling"

    + hitbox: is jumping

    -> Sprite: Set animation to "jumping"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)