Pages: 1
Topic closed
ive made a game but im having trouble with the score, if (sprite1) touches (sprite2) then the score goes up by one, but the score only increases if i touch the sprite from the side, but not from above or below (e.g. if i had a dog as my character and it touched [cat2] to get one point, it would only work if it touched the tail or the head, but not the body), can anyone help?
Offline
Are you doing any other checks when touching from the top or bottom that makes it miss the score increment?
A simple test:
Forever
go to mouse pointer
if touching sprite 2
change score by 1
shows that the score will increase wherever sprite2 is touched.
Offline
i tried that and it worked with the mouse but my game uses the direction keys instead of the mouse, i tried re-opening it and it changed again so that the score only increases when touching from the top or bottom and not from the sides, it changes back and forth sometimes if i re-open it.
Last edited by lilmonkichi (2007-06-27 04:00:30)
Offline
i figured out how to solve it, instead of putting [when sprite1 touched sprite 2, increases point by 1] you put it on sprite two as [if sprite 2 touches sprite1 increase point by one]
Offline
Topic closed
Pages: 1