Force enemys on screen?

0 favourites
  • 1 posts
From the Asset Store
Complete the collection by purchasing Trailer Force - Cinematic Sound Effects Tool Kit Pt.2: Drones
  • I'm creating an Asteroids clone and have an issue with the enemies.

    When an enemy is created it's assigned a random angle. The sprites are set with WRAP so when they go off screen they come back on the other side. Problem is there's space just off screen that is still treated as part of the screen but the enemies aren't visable.

    So, if the enemy is assigned, let say 90 degrees and is in this space off screen, it will continue to wrap around this 'channel' out of view of the player!

    Is there a way to correct this? Can I reduce the size of this channel or is there some other ways to get around the issue.

    Hope I've explained it well enough.

    Here's my CAP. Ignore everything else, I'm learning and already know of better ways to do some of the things I've done but I need to get this right before moving one. Cheers for any help.

    http://www.sendspace.com/file/90vo5q

    The CAP is 24 meg due to graphic animations, sorry about that :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)