Clickteam Fusion 2.5

Clickteam Fusion 2.5

Object Creation and Destroy Events
Are there the following in individual Active Object's Event Editor:
1. Create Event... which should fire once and only once at the beginning when the object is first created. (something like OnCreate event)
2. Destroy Event... which should fire just before the object is destroyed. (OnDestroy).

Thanks!
Last edited by BOB_nachiketaom; Nov 26, 2016 @ 7:53am
< >
Showing 1-2 of 2 comments
Squatter Nov 26, 2016 @ 11:10pm 
Below are a variety of ways to do this depending on what you are actually doing

but you probably only need 1. Option 5 and 2. Option 3
--------------------------------
1. Option 1
Global Value A = 0
Number of active object > 0
* fire event (your choice)
* Set Global Value A = 1

Number of active object <= 0
* Set Global Value A = 0

1. Option 2
Number of active object > 0
Only one action when event loops
* fire event (your choice)

1. Option 3
Always
* Start Loop for each one of active object, loop name "On Create loop"

On Each one of active object, loop name "On Create loop"
Active Object Alterable Value A to 0
* fire event (your choice)
* Set Active Object Alterable Value A to 1

2. Option 1
Destroy Condition (your choice)
* Set Active Object Alterable Value B to 1

Always
* Start Loop for each one of active object, loop name "On Destroy loop"

On Each one of active object, loop name "On Destroy loop"
Active Object Alterable Value B to 1
* fire event (your choice)
* destroy

Edit: Thinking about it, you might not even have to do a For Each loop, you could probably just set the active object Alterable Value and when that changes you can fire and destroy or on creation just fire and switch the value

1. Option 4
When you create object condition (your choice)
* Set Active Object Alterable Value A to 0

Active Object Alterable Value A to 0
* fire event (your choice)
* Set Active Object Alterable Value A to 1

2. Option 2
Destroy Condition (your choice)
* Set Active Object Alterable Value B to 1

Active Object Alterable Value B to 1
* fire event (your choice)
* destroy

2. Option 3 (heck this might work because of object scoping)
Destroy Condition (your choice)
* fire event (your choice)
* destroy

1. Option 5 (heck this might work because of object scoping)
When you create object condition (your choice)
* fire event (your choice)

Honestly there are a TON of different ways to do this

we could use Spread or Fast Loops as well
Last edited by Squatter; Nov 26, 2016 @ 11:37pm
BOB_nachiketaom Nov 27, 2016 @ 2:25am 
Thanks a lot!
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Nov 26, 2016 @ 7:53am
Posts: 2