One more question, I tried adding another platform after looking at what you did, and for some strange reason it didn't work. Tell me what you think
REM << make and position character sprite
sync on
sync rate 60
hide mouse
ink rgb(255,255,255),0
box 0,0,50,50
get image 1,0,0,50,50
charxpos# = 340
charypos# = 400
Attack#=10
back#=2
mx=Mousex()
cls
sprite 1,charxpos#,charypos#,1
REM << draw ground and print instructions to screen
ink rgb(0,255,0),0
line 0,450,screen width() - 1,450
ink rgb(0,0,255),0
line 500,350,400,350
Line 250,270,350,270
ink rgb(255,0,0),0
center text screen width() / 2,5,"USE ARROW KEYS TO MOVE CHARACTER AND PRESS SPACEKEY TO JUMP"
REM << set gravity(gravity is set to positive value because in 2D positive is downward)
gravity# = 0.90
REM <<<<<<<<<<<<<<<<<<<<<<<< MAIN LOOP >>>>>>>>>>>>>>>>>>>>>>>>>>>
do
REM << activate jump sequence if character is on ground
if state = 0 and spacekey() = 1
state = 1
REM << jumpspeed is set to negative because in 2D negative is upwards
jumpspeed# = -15
endif
REM << jump sequence
if state = 1
inc charypos#,jumpspeed#
inc jumpspeed#,gravity#
REM << if bottom(charypos# + charheight{50}) of character goes below ground then reposition him above ground and reset jump state
if state=1 and charypos# + 50 > 450
state = 0
charypos# = 400
endif
`land on the platform
if (jumpspeed# >= 0.0) and charypos#<350 and charypos#>301 and charxpos#>350 and charxpos#<500
charypos#=301
state=0
endif
endif
if (jumpspeed# >= 0.0) and charypos#<263 and charypos#>220 and charxpos#>200 and charxpos#<350
charypos#=220
state=0
endif
`fall off the platform
if (charxpos#<350 or charxpos#>500) and charypos# <350 then state =1
if (charxpos#<200 or charxpos#>350) and charypos# <263 then state =1
if charxpos#>600 then charxpos#=600
if charxpos#<0 then charxpos#=0
`if charypos#<350 and charypos#>301 and charxpos#>350 and charxpos#<500 then charypos#=350
REM << move character
if rightkey() = 1 then inc charxpos#,3
if leftkey() = 1 then dec charxpos#,3
REM << update sprite image
sprite 1,charxpos#,charypos#,1
text 10,10, str$(charypos#)
sync
loop
cls
sync
end
Cocacola and Pepsi aren't that differnt. Deal with it.