NEWB Questions~ Nyo~

Blitz3D Forums/Blitz3D Beginners Area/NEWB Questions~ Nyo~

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Finnally Succeded after trying, trying, trying.
I created a new project re did the code as I was getting mixed up with the other code.
The code i came up with is not very high tech code but it does the job.

Might have bad code in it if theres is tell me :)
Im gonna play with it to see what we were doing wrong.

Oh and heres the code:
AppTitle "Practice"
Graphics 800, 600, 16, 2
SetBuffer BackBuffer()

Global arrow   = LoadImage("graphics\defaultcursor.png")

Global Single1 = LoadImage("graphics\main_singleplayer.png")
Global Single2 = LoadImage("graphics\main_singleplayerOVER.png")


HidePointer
While Not KeyHit(1)


If ImagesOverlap(Single1,100,0,arrow,MouseX(),MouseY())
Cls
    DrawImage Single2,100,0

Else
Cls
    DrawImage Single1,100,0

EndIf

DrawImage arrow,MouseX(),MouseY()
Flip:Cls

Wend




-------------------EDITED
And this is the second way I found how to do it, I think this way should be better, its almost like the old one that didnt work so well, or it is the old.
But Anyhow here it is, is it better or not from the one above?
AppTitle "Practice"
Graphics 800, 600, 16, 2
SetBuffer BackBuffer()

Global arrow   = LoadImage("graphics\defaultcursor.png")

Global Single1 = LoadImage("graphics\main_singleplayer.png")
Global Single2 = LoadImage("graphics\main_singleplayerOVER.png")

Sin1 = Single1
Sin2 = Single2
arr1 = arrow

HidePointer
While Not KeyHit(1)


If ImagesOverlap(Sin1,100,0,arr1,MouseX(),MouseY())

    BUTTON = Sin2

Else

    BUTTON = Sin1

EndIf

DrawImage BUTTON,100,0
DrawImage arr1,MouseX(),MouseY()
Flip:Cls

Wend


I have to say you guys, your help is very appreciated, I bet when I get to making my char move on the screen and making maps for it, my future help post is gonna hit +100 post ;)