I making a main menu for my game, but don't know how to get the buttons to take a player to a selected screen the code is as follows
Rem ***** Included Source File *****
rem Standard Setup Code
DO
Center Text 320,100,"1.Free Gig"
Center Text 320,120,"2.Career Mode"
Center Text 320,140,"3.Options"
Center Text 320,160,"4.Mod Settings"
Center Text 320,180,"5.Create User"
Center Text 320,200,"6.Quit Game"
Repeat
I$=Inkey$()
Until Asc(I$)>48 and Asc(I$)<55
CLS
IF I$="1" Then
LOOP
End
Any help will do just need to know how to link screens together and another code I'm having trouble with is the side scrolling code I found a code on the forums to make it scroll from top to bottom, but I have no idea how to make it scroll right to left.
Here is the top to bottom code I'm still in the process of editing it for my game
Rem ***** Included Source File *****
` vertical scrolling 3-14-07
` Quisco Da Luse
sync on
sync rate 42
` make something to scroll
create bitmap 1,640,480
randomize timer()
for i=1 to 50
ink rgb(rnd(225),rnd(245),rnd(205)),0
x=rnd(500) : y=rnd(300)+20
box x,y,x+rnd(100)+30,y+rnd(100)+30
next i
` grab the entire screen as an image
get image 1,0,0,639,479
delete bitmap 1
set current bitmap 0
ink rgb(255,255,0),0
set cursor 0,450
print "Piano Hero"
hide mouse
` scroll it; press the space bar to exit
for i=-480 to 0 step 5
sprite 1,0,i,1
if spacekey()=1 then exit
sync
next i
set cursor 0,0
print "Piano Hero"
sync
wait key
show mouse
end
The reason I want both Right 2 Left and Top 2 Bottom is because I'm doing two types of games one is a side scrolling shooter and the other is a music game like RB and GH. But the first game is the shooter.