I need to know that the player definitely clicked on terrain to procceed. So I basically handle this with weapon_mode setting and weapon_position but the issue is that when I use the following line:
1
2
3
4
5
6
2
3
4
5
6
if weapon_position == 1 then 		if collision(col1x1,weapon_x,weapon_x,1,0)==0 then 			print("Invalid position") 			weapon_position = 0 		end 	end
To be honest. I'm not exactly sure how collision works here so I might be missing out on something.
Help. Thanks.
// I fucked up big time. Silly mistake. Shame on me. Damn. I'm going to hide in the basement now.