I'm using Adobe Flash CS4. The language is Action Script 3
In my library I have 2 items:
- player
- wall
the player object is already functioning correctly with moving him around. Now when I place multiple wall objects into the stage (wall = 32x32 px) I want to prevent the player from moving when he walks into a wall.
I've tried giving all the walls the same instance name and just check for a collision with that object but when I do that the collision only works for 1 of the walls.
I could give all the instances of wall a different collision script but this is way to time consuming, is there another way to globally define the wall as solid for the player?
Thanks in advance!