C++ Allegro Help?

Apr 5, 2013 at 1:12am
Hey guys, are the many users here who have experience with allegro? If so, any ideas how to hide/delete and image from the screen after drawing it?

Cheers
Last edited on Apr 6, 2013 at 8:57pm
Apr 5, 2013 at 2:09am
I'm not familiar with Allegro, but I do suggest you enclose each condition in parentheses in lines 9 and 11. This will ensure that the operators are called in correct order.
Apr 5, 2013 at 2:15am
Thanks for the suggestion, how would this be done exactly as the following way gives an error on the "&&" -
1
2
3
if(mouse_x < XposMax) && (mouse_x > XposMin) //and if the mouse position is lower than 520pixels and higher than 320
{
    if(mouse_y < YposMin) && (mouse_y > YposMin)


Thank you!
Last edited on Apr 5, 2013 at 2:17am
Apr 5, 2013 at 2:31am
Example:
 
   if((YCoord >= Min) && (YCoord <= Max)){/*Do something...*/}
Apr 5, 2013 at 2:39am
Ok thanks, Just missed out a set of brackets that's why errors were coming up, it now reads fine :)


Anyway back to topic - any ideas anyone?
Last edited on Apr 6, 2013 at 8:57pm
Topic archived. No new replies allowed.