Clickteam Fusion 2.5

Clickteam Fusion 2.5

Pacster Apr 21, 2019 @ 3:40pm
Move objects independently
Hi. I have the same object (an enemy) cloned 10 times. Every clone has a different X-Y position. I want that every object follows the player but independently. I have tried with "if X player< X enemy, set X enemy to X enemy -1". In this way, every object will move left.
The problem is that EVERY object does that, even those enemies that haven't their X greater than player's X.
I need help. I want to move them independently but I can't find the solution!
< >
Showing 1-2 of 2 comments
Rakashis Apr 21, 2019 @ 4:19pm 
Try using "spread value", this spreads a variable through all objects of the same type inside an scene, it works as an ID, so you can after call objects by ID individually.

this is a pic of where to find it:
http://prntscr.com/nf1i0o

Hope it helps :)
Wodjanoi Apr 22, 2019 @ 6:30am 
You could also run a loop for each enemy object, for example:

condition: Upon pressing a key "Space bar"
event: Set Flag 0 of "player" On

condition: Flag 0 is on
event: enemy - Count - For each object - enter a name, test1 for example

condition1: enemy - Loops - On each object - enter the name you set before
condition2: player X position < enemy X position
event: set enemy X position to enemy X position - 1
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Apr 21, 2019 @ 3:40pm
Posts: 2