This is a simple question that I've been trying to figure out for hours.
I want to change the x value of an actor that collides with my sword actor. Here's what I have.
int d;
Actor *hitEnemy=getAllActorsInCollision("Sword", &d);
hitEnemy[0]->x=50; //change x value of collided actor.
However when I compile I get "Pointer required" for line 3
I read everything I could about pointers online and I can't figure out what I'm doing wrong here. Does anyone know?