• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Multi-Instance View?

Hello!

I'm currently creating a turn-based game where I want the camera to adjust to follow a random enemy on their turn. However, I am using multiple instances of the same object.

For example, 5 slime objects, with 1 "Enemy View". Any ideas on how I can change the view to follow one of these Objects randomly, instead of it always following the same instance?
 

Alexx

Member
Create a list and then use
Code:
with
to loop through all instances.
Grab the id and add this to the list as you loop through.
The link above should give some ideas, failing that press F1 and checkout the manual entry.
 
Top