kyuzo's Forum Posts

  • 4 posts
  • OK, they were in the wrong place because I was putting them into the wrong layer. I didn't realize there were multiple layers in the project with different coordinate systems. Thanks.

  • My son is creating a game but he's encountered a problem I can't figure out. He started out with the "platformer" template, re-arranged the platforms somewhat, changed the graphics, etc. He added an enemy that appears on a platform above the player's starting position. No problem there. He wanted the enemy to move up and down and shoot a fireball every second. So I told him to add a fireball sprite somewhere off-screen, add the bullet behavior to it, then add an event that every 1 seconds, the enemy sprite would spawn a fireball sprite at image point 0. According to the manual this should spawn the fireball at the center of the enemy sprite (where the image point is). Instead, it seems to spawn the fireballs at another place somewhere between where the enemy and the player are. Even stranger, if he moves the player while the fireballs are moving, they seem to slow down, speed up and move up and down like they are tracking his movement somehow.

    Here is a gif showing what's happening. The fireballs should be spawning further up above him and they shouldn't move upward when he jumps.

    Thanks in advance for your help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you assign the Platform behavior to it, it will fall under the influence of gravity. Make sure you set the "Default controls" property to "No" to avoid the keyboard affecting its motion.

    Or you could use a bullet behavior and set its direction downward.

    Depends on whether or not you want the motion to be accelerated or constant.

  • Sounds like you just need to set the enemy's VectorX to 0 when it's hit.

  • 4 posts