Hello Everyone
I am using an array to create a grid of squares. Each square in the grid is assigned a instance variable: box_id. I also have a family of 3 monsters which have instance variables: mob_id.
My Box_ID's on the grid look like:
0, 5, 10, 15, 20
1, 6, 11, 16, 21
2, 7, 12, 17, 22
3, 8, 13, 18, 23
4, 9, 14, 19, 24
My Mob_ID's
monster1... mob_id = 0
monster2... mob_id = 1
monster3... mob_id = 2
Right now when I hit B my grid is created but it is empty.
I would like to match box_id to mob_id and spawn a monster in the associated square.
I have searched the forums and tried many things but I can't seem to figure out how to do this. How can I reference a specific family member and tie it to my grid?
The end result should show 3 monsters on my grid occupying the squares marked 0 , 1 and 2
Any suggestions? I have been stuck on this for hours..