` Get middle of screen coordinates
MX = Screen Width()/2
MY = Screen Height()/2
Menu:
buttonselected=0
if makebutton(320,240,"New game")>0 then buttonselected=1
if buttonselected=1 then goto FactionSelect
sync
goto menu
FactionSelect:
cls
sync
wait 300
MarkerSelectFaction:
buttonselected=0
if makebutton(320,240,"Scarecrows")>0 then buttonselected=1
if buttonselected=1 then goto ScarecrowL1start:
sync
goto MarkerSelectFaction
rem make buttons for commands
function makebutton(x,y,desc$)
buttonpressed=0
ink rgb(255,0,0),0 : box x-47,y-24,x+43,y+24
ink rgb(255,143,100),0 : box x-43,y-22,x+41,y+22
ink rgb(255,255,255),0
myx=mousex() : myy=mousey()
if myx>x-26 and myx<x+26
if myy>y-7 and myy<y+7
buttonpressed=1
endif
endif
if buttonpressed=1 then ink rgb(64,64,64),0
set text size 14 : center text x,y-7,desc$
if mouseclick()=0 then buttonpressed=0
endfunction buttonpressed
ScarecrowL1start:
gameL1:
`Player Positioning
`Centremouse
position mouse 320,240
goto gameL1
it skips without the buttonpressed and if i have it it wont go to the next part
[link]"http://www.greatgamesexperiment.com/user/Dared1111/" my account on GGE[\link]