ok will try
edit: the sprite won't show at all.
edit: forgot .png at end of load, but it now has an error that it can't load that sprite.
Rem Project: 2dGame
Rem Created: Thursday, July 29, 2010
Rem ***** Main Source File *****
sync on
sync rate 60
hide mouse
backdrop on
color backdrop rgb(255,255,255)
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerright.png",1
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerleft.png",2
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerleftwalk\playerL1.png",3
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerleftwalk\playerL1.png",4
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerrightwalk\playerR1.png",5
load image "C:\Users\Dollie\Desktop\DB\GameFolders\2dGame\MainPlayer\playerrightwalk\playerR2.png",6
sprite 1,150,150,1
do
x=sprite x(1)
y=sprite y(1)
if leftkey()
`Switch sprite image
if timer()-lastframe>=500 `Time in ms between frame switches
if sprite image(1)=4
temp=3
else
temp=4
endif
sprite 1,sprite x(1),sprite y(1),temp
endif
`[Move sprite here]
if leftkey()=1 then x=x-2
endif
if rightkey()
if timer()-lastframe>=500 `Time in ms between frame switches
if sprite image(1)=6
temp=5
else
temp=6
endif
sprite 1,sprite x(1),sprite y(1),temp
endif
if rightkey()=1 then x=x+2
endif
sync
loop
Also if the player were to equip something could you make a sprite (sword for example) and make it a different sprite then load it in your game and make it look like your guy is holding it and then when you press spacebar he plays the animation using something like (player being sprite 1 and sword being sprite 2. animation 2 is player hitting with that sword. pretend there are also 10 weapons, each with there animation equal to there number)
do
x=sprite x(1)
y=sprite y(1)
if sprite hit (1,2)
then sprite x(2)=x+5 sprite y(2)=y-2
and
weapon$=1
endif
for b=10
if spacekey()=b
then
play animation b
b=+1
next b
endif
sync
loop
I want coke, not Pepsi!