Identify which instance of an actor was the overlap
CasualEvolution
Member, PRO Posts: 543
Hi, an idea for your todo list (sorry my english)
It would be very useful in the rules, when we put if "overlap or collides" could access the variables of the actor that collides.
Suppose I have the actor enemy and within these a variable that identifies which instance of enemy is. That is, as usual, in the prototype put a variable "index", then we change in each instance to identify each enemy as 1, 2, 3 ... The idea or proposal would be that when collided with one of these instances, it would be great to be able to access the variable "index" of the instance to which collided.
So could do things like:
When overlap with the enemy A and the variable "colider.index" ... bla bla
It is understood? sorry if I'm not clear or if this is something requested many times.
thank you very much
It would be very useful in the rules, when we put if "overlap or collides" could access the variables of the actor that collides.
Suppose I have the actor enemy and within these a variable that identifies which instance of enemy is. That is, as usual, in the prototype put a variable "index", then we change in each instance to identify each enemy as 1, 2, 3 ... The idea or proposal would be that when collided with one of these instances, it would be great to be able to access the variable "index" of the instance to which collided.
So could do things like:
When overlap with the enemy A and the variable "colider.index" ... bla bla
It is understood? sorry if I'm not clear or if this is something requested many times.
thank you very much
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Lump Apps and My Assets
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Lump Apps and My Assets