Highlighting Function

BlitzPlus Forums/BlitzPlus Beginners Area/Highlighting Function

Goto is evil anyway, it's the highway to Italian Pasta, use functions all the way.

Here's pseudocode, I'm kinda used to event-based code and apps, I ditched Graphics modes ever since I started out with B+ :P

If MouseX()>=NewGameImageX1 and MouseX()<=NewGameImageX2 and
MouseY()>=NewGameImageY1 and MouseY()<=NewGameImageY2

^ if this is true, then your pointer is in the new game image

next, check for a key/mouse/joystick trigger, et voila: you may now call a function called Game().

In this Game() runs your game!


Ok, enough chaos for now, and perhaps you can't make soup from it still :P .. I've a bloody deadline to make ._.