0 Favourites

Trigger movement by checking distance.

This forum is currently in read-only mode.
  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
233 22,269
TiAm's avatar
TiAm
Unread hot topic
102 6,404
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
0 Favourites
Path Movement Behavior
98 52,480
R0J0hound's avatar
R0J0hound