Trigger movement by checking distance.

This forum is currently in read-only mode.
From the Asset Store
Game Triggers
$44.50 USD
50% off
Game Triggers is as versatile as a Swiss army knife, and will be a great resource for any type of game you're creating.
  • Hey All,

    I am working on a vert. scroller where the character floats up through the sky. I have strewn clouds all throughout the level, but by the time the character floats up to the higher clouds their bullet behaviours have caused them to move out of their correct positions.

    I have tried setting events that only enable the bullet behavior if the character is within a certain distance of the cloud...but I can't seem to get it to work correctly. I think it's an error with "Picking" the right clouds to enable??

    I've been having the same problem with destroying clouds that are below the character (for the sake of sys. resources)

    here's a CAP package

    I hope that makes sense...if anybody has an idea, that'd be great.

    Thanks yinz.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could just cycle the clouds around the screen chap. Something like this.

    For each cloud-

            cloud.x is greater than ScrollXRight + 500 Set position to ScrollXLeft - 500

    This will place the clouds back to the left side of the screen once they have left the right side. The extra 500 is to have the cloud off the screen before it changes position.

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