void at the beginning.
When i remove void, and i use this in a if statement i get the error "epression must have bool type or be convertible to bool
Can't say much without your code but I would advise to check if your function is returning a Boolean value.
looking at the error you're getting it sounds like you're not returning a bool.
bool Pacman::CollisionCheck(int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2)
Last edited on