Hello,
I'm trying to make a 2D game in playmaker, no knowedge in coding.
I'll appreciate any help.
I already have a spawner which works fine spawning randomly colored random objects.But what I need is that each newly created object, let's say triangle, circle, square etc., moved to a certain target position and be destroyed reaching that point, which works fine if I have FSM with "move toward" and "destroy" actions inside a prefab.
But I feel that there should be some other way using a single managing GameObject ("Game Manager") and variables, because now I just copy/pasted FSM to 4 different prefabs, but what if I have 100 and I need to change speed or something, so I have to change it in all 100 prefabs. Doesn't sound right to me.
So in a spawner FSM I have "select random object" (store it in "random object" variable), "create object" (store GO in "current obect" variable), set material color to the "current object". So far with the Game Manager I managed to create 2 types of behavior and both are not what I need: 1)"current object" moves toward the target, when destroyed a new object is spawned 2)"current object" starts moving but as soon as new object is spawned it stops. Instead a newly spawned object moves until another object is spawned.
I'm sorry for the long description, I hope it's clear what I need to achieve. Is it possible to do that or I need to do all the movements and actions in the prefabs?
I tried to play around with arrays but could only achieve the same 2results as with Game Manager object.
I would be happy to get any help, clues, guesses as I'm struggling with it for few days already. Thank you