Excal's Recent Forum Activity

  • Title basically says it. Sometimes the enemy spawns and doesn't move. Other times (more often), the enemy spawns and chases the player as per the Pathfinding behavior.

    EnemySometimesStuck.capx

  • I removed the player setting to stop custom movement so now the player seems to collide and react well.

    The enemy still does not react to the collision, instead staying there like a brick during the collision.

    UPDATE: I think I solved the issue. The AI pathfinding was causing it to continue moving along the found path during the collision, which overrides the physics behavior that would cause it to bounce. Stopping the enemy's movement along the AI path during collision seems to allow the physics behavior simulate a collision.

  • Have the player object be bound to layout.

    Use (in the event sheet):

    System: Every Tick -> System: Set scroll X to scrollx + 8 * dt (or whatever number you prefer)

    This should move the screen slowly to the right every few seconds.

  • Right now, when the player collides with the enemy, the enemy doesn't move, nor does the player "bounce" off of them.

    I want to simulate realistic physics where if the player hits an enemy, the two 'bounce' off each other.

    Does anyone know how to do this?

    CollisionNotWorking.capx

  • Updated file. The 500 reputation limit is kind of annoying right now; should probably be 250.

    Collision and Wrapping Not Working

  • I've cleaned up the project a bit and removed aspects I felt were unnecessary.

    I changed Bullet behavior with Pathfinding behavior, although I'm not sure the settings I've used are optimal (I'm finding a new path and regenerating the obstacle map every 0.5 seconds).

    Collisions aren't working and I don't know why. My goal is to have the player and enemies collide and then bounce off each other.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay, the enemy not wrapping has to do with the fact that it is not accelerating due to it's speed being dropped to zero on impact (only way I could get the impulse to work).

    I'm not sure how to simulate realistic colliding physics while also causing the enemy to accelerate to counteract the collision impulse and eventually start chasing the player again.

  • Title says it all. EnemyCrescent has the Wrap behavior but is clearly not wrapping. Easiest way to test this is to collide with the enemy and watch it go off the screen.

    Also, if anyone has any ways on optimizing my physics for a more realistic collision, tips are appreciated :)

    Go to post #4 for the latest update.

  • Ah, it works now. I guess the reason why it didn't work when I first tried your advice is because I didn't clear local memory or something. I kept getting the same problem. Thanks!

  • I did a search for Ghost Rain tutorial and didn't find it on the forums or the tutorials section of the site.

  • I added an event to rotate the enemy 90 degrees clockwise as soon as it spawns, but that doesn't seem to fix the issue.

    I've tried rotating it to player.X and player.Y upon spawn (and then having it slowly keep rotating towards the player's position every tick), but it's still chasing the player sideways.

  • I'm having an issue where my enemy sprite is not facing the player upon spawn. It chases the player at an angle, which makes it look weird. Does anyone know how to fix this?

    EnemyFacingIssue.capx

    This project is based on the Asteroid Clone in 100 Events or Less tutorial.

Excal's avatar

Excal

Member since 9 Mar, 2013

Twitter
Excal has 1 followers

Connect with Excal

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies