Call previous events

Discussion and feedback on Construct 2

Post » Tue Aug 26, 2014 4:09 pm

Hi
I have 350 events or lines in the events sheet

Now I want that when click on a button, it will automatically run some events, say events number 125,130,180 & 230.

Is it possible ?
Plz help me
B
5
Posts: 13
Reputation: 253

Post » Tue Aug 26, 2014 4:22 pm

Sounds like a job for the Function object.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Tue Aug 26, 2014 5:38 pm

@arctushar

As zenox98, this is really a job for the Function object, but could be achieved with using Groups and enabling/disabling them as needed.

Using a Global variable to control whether those events run would also work.

So, yes, it is possible and you have options, but the Function object is your best bet.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
33
S
9
G
7
Posts: 450
Reputation: 6,778

Post » Tue Aug 26, 2014 7:15 pm

How can I do that ? Still I did not understand :)
Thankz for ur kind help. Can u plz elaborate ?
B
5
Posts: 13
Reputation: 253

Post » Tue Aug 26, 2014 7:53 pm

It's difficult to give a more accurate answer because you aren't giving us anything to work with, such as an example .capx, or a picture of the events you are referring to.

Here is the entry in the manual for Functions: https://www.scirra.com/manual/149/function

Basically, you would add the Function object to your project. Then place whichever events you wish to call in to a new function, then when you need it, you just Call the Function.

If we knew which events you wanted to repeat, this would be much easier to explain, but read the manual entry and you'll see Functions are very easy to use.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Tue Aug 26, 2014 8:30 pm

they are saying that for the event you want to repeat change the conditions to a Function or a global variable that you call to.change when you want those events to happen

Edit: what zenox98 said haha must of posted right when i hit reply
B
42
S
17
G
2
Posts: 850
Reputation: 6,209


Return to Construct 2 General

Who is online

Users browsing this forum: A2D, odiusfly, paxto22, Refeuh and 2 guests