Hey y'all,
I have been having some collision issues in my pacman clone game.
Basically the code I am using for it is this
Pacman_posX# = Object position x(1)
Pacman_posZ# = Object position z(1)
Wall_start = 2
Wall_end = 3
For y = Wall_start to Wall_end
If Object collision(1,y)>0 then position object 1,Pacman_posX#,0,Pacman_posZ#
next y
The reason I am doing it this way is so every level I can set the wall objects(the objects the player collides with)for every time I start a new level. The problem is, I can only get it to collide with 1 object, by setting it to
Wall_start = 2
Wall_end = 2
Wall_start = 2
Wall_end = 2
For y = Wall_start to Wall_end
If Object collision(1,y)>0 then position object 1,Pacman_posX#,0,Pacman_posZ#
next y
I need to know how to have it so I can set what objects are collided with. If anyone can look and find the problem it would be greatly appreciated, thanks!
-
Fxgamer
Your about to get pwned.
