althea_texas's Recent Forum Activity

  • Fantastic! I will look into this now. Thanks!

  • I'm not sure I know what you mean about the placeholder. Does the placeholder work for the *enemy* animations? Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not attaching a CAPX file to this message because I'm asking it on behalf of a student who is enrolled in my games class. (I teach at a liberal arts university in San Antonio, Texas.)

    Her game is a simple platform game that follows the logic of the jungle platform tutorial. An invisible border box is attached to the skin for the player character, and that border box is used to detect collision with other objects. The platform behavior is also attached to the border box.

    Enemies move from left to right, and they check for collision with an invisible edge sprite when they reach the end of their platforms. In this case, the enemies are just an animated sprite. They do not have an invisible box attached to them. As in the tutorial, an instance variable is used to keep track of the enemy's direction, and the enemies are flipped each time they collide with an invisible edge sprite.

    As the player moves through the game, the enemies suddenly start running off the platforms and falling to their deaths. It seems like it might be a collision detection problem. For some reason, it is more likely to happen when the enemies are outside of the viewport window. This is what the collision boundaries look like for the enemy sprite:

    I noticed that the fox sprite is *slightly* wider on certain frames than on other frames. (Never more than a couple pixels.)

    Should we be using invisible border boxes with our enemy sprites to avoid this problem? If so, how would one do this with multiple enemy sprites? Would we need to have a unique invisible border box for each enemy sprite? That seems hugely unwieldy. Would we use UIDs to pin invisible border boxes to enemy sprites when the layout loads?

    Thanks in advance for any help you might provide.

  • Thank you! This is exactly what I needed to know. This is super helpful, and I appreciate the prompt response.

  • Yes. Exactly. But when I try to add the boolean check (is hasSword), it doesn't indent the condition under the first condition. Nor do I get a system condition labeled ELSE.

    Aha. Figured out that I need sub-events and can select them from the events menu. Is there a short-cut for this? The manual says to right-click in the event margin but this doesn't seem to work.

    Thanks for the help.

  • Imagine a simple scenario involving a hero, a monster, and a sword.

    If the hero has picked up the sword, collision with the monster kills the monster.

    If the hero has not picked up the sword, collision with the monster kills the hero.

    Currently, I have two almost identical code blocks: one kills the monster if the boolean is true and the second kills the hero if the boolean is false.

    Is there any way to use an ELSE statement in this situation?

    Thanks!

  • I have also encountered the problem of layouts turning black inexplicably under Vmware Fusion Pro (Windows 10). Has anyone else encountered this problem and/or figured out a solution for Vmware Fusion Pro users? Should I be asking about this in a different forum?

althea_texas's avatar

althea_texas

Member since 26 Aug, 2016

Twitter
althea_texas has 3 followers

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies