Solid Object issues

0 favourites
  • 5 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • I've been sort of making somewhat of a Hack and Slash to try to learn Construct 2, and I've seem to run into an issue with the Solid behavior.

    My player model is made up of three sprites, one for his body and one for each of his arms. His left arm only has one 2 frame animation, one for holding his shield up to block, and the other with the shield at his side. When I hold right click, it sets it to the frame for blocking, and changes back to the other frame when I release it. My problem is that I want to make his shield a Solid object, but it won't work despite the Solid behavior I put on the sprite. I initially wanted to make the Solid behavior toggle with the frames, but I've since just started trying to get the solid behavior to work on this sprite at all. I made a new sprite and added the solid behavior to it, and it seemed to work fine.

    I read some places that said something about the objects needing the 8Direction behavior, but even adding that did nothing and I have other objects with working solid behaviors and no 8direction.

    docs.google.com/file/d/0B33EgxAFaaceTmd4S3M0QXR6T3M/edit is the CAPX of my game where I ran into the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you check the collision box for it and see if maybe it wasn't made properly?

  • I've checked and rechecked. I extended the hitbox so it would overlap with the hitbox for the player's body, and it caused it to freak out and bounce around like I expected, I just can't get the shield to otherwise be solid.

  • The solid behavior interacts with Platform, 8Direction, Car and Bullet (when bounce off solids is enabled). Two solid objects won't interact with each other otherwise you couldn't have overlapping walls, floor etc. I assume that's what your problem is - that you have the shield and enemy set to solid and think the shield shouldn't overlap the enemy? You'd want to give the enemy 8Direction behavior and remove Solid. Or if that's not the problem, what do you mean when you say it won't work?

  • The solid behavior interacts with Platform, 8Direction, Car and Bullet (when bounce off solids is enabled). Two solid objects won't interact with each other otherwise you couldn't have overlapping walls, floor etc. I assume that's what your problem is - that you have the shield and enemy set to solid and think the shield shouldn't overlap the enemy? You'd want to give the enemy 8Direction behavior and remove Solid. Or if that's not the problem, what do you mean when you say it won't work?

    I realized my issue was I never had 8Direction on the enemies. I intended to put it on them, but I seem to have gotten a bit ahead of myself. Thanks for your help.

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