Same actions/events for multiple objects?

0 favourites
  • 3 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • Hi, I'm starting an asteroids type game for something to do and I'm wondering if it's possible to have one set of actions and events applied to multiple objects?

    As you know Asteroids has several asteroids on the screen all spinning and moving at various angles. When they go off the edge of the screen they re-appear at the other edge. What I wanted to do was create an event to check if it went off the edge and an action to move it to the other side but I don't really want to have to do this for every possible asteroid on the screen.

    So I'm wondering if and how I can set up one lot of events for them all?

    Cheers.

  • vandinz you dont need to create a event for achieve this effect.

    You can use the Wrap behavior, and the engine will do this automatically.. ;)

    scirra.com/manual/105/wrap

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • MY FRIEND IF YOU CAN USE THIS FOR VARIABLES EZECURTAR A GROUP OF EVENTS I'M DOING THIS TYPE IN A GAME THAT USING A��OES TO SEVERAL OBJECTS, THEN I'M USING VARIABLES

    EX:

    ACTION: IF THE LAYOUT Sprit Outsid

    CONDITION: SET VARIABLE (X) IN 1

    ACTION: IF THE VALUE OF VARIABLE (X) FOR "1"

    CONDITION: The Asteroids CHANGE OF POSITION OR CHANGE YOUR VALUE RONDOM.

    IF THE VALUE OF VARIABLE (X) IS "0" The Asteroids BACK THE VALUES OF ORIGIN.

    TRANSLATED BY GOOGLE TRATUTOR DECULPE ERRORS HOPE UNDERSTAND!

    ramosalvaro

    STUDIOSURICATE.COM.BR

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