Android - if statement not executing

faze

New Member
I'm following the Mr. Nom tutorial from Beginning Android Game e-book,and in the part which recognizes where a touch was made, the if statement doesn't execute even though the condition in true.I ran the debugger and checked the values. the if is something like\[code\]if(event.x >0 && event.x <64 && event.y>416 && event.y<480)\[/code\]but even with values likeevent.x = 15event.y = 450(got from the debugger)it won't get within the curly brackets of the if statement.the requested image is in the bottom left corner of the portrait screen.any thoughts?Thanks!
 
Top