w-well guys tonight i'm gonna be releasing my very first game "RPG Z". there's only a few things to do like fishing and the stores almost done. please leave a comment on what you think ^_^.
@enemy
(lets say you want to make it totally random)
ene=rnd(5)
If ene==1 then gosub @level5e
If ene==2 then gosub @level10e
If ene==3 then gosub @level15e
If ene==4 then gosub @level20e
If ene==5 then gosub @level25e
return
Okay so back track go back to where you made your player move ^_^
add to every command in that branch
if b==1 then y=y-1:spchr 0,(number):steps=steps+1
now go to your @enemycount
vysnc 1
if steps>50 then steps=0:beep 4:gosub @enemy
return
Now making enemies i am certainly not a pro at but... I'll give you my best advice.
So if you're making an enemy system that consist of you running into them I have NO CLUE (i'm sorry...)
However if you want to make a classic style Walk a certain number then you run into an enemy then do this :
Add a return to the end of that one
I forgot what bg was XDDDD so lets move on to
@background
You can do what you like
just type in Bgfill then read what it has to say ^_^
if you want to create boundaries then simply type
Print "X- ";x
print "y- ";y
then when you have your sprite moving look at where the X and Y are at and make this
If x<(number) then x=x-1
Experiment ^_^
@move
vysnc 1
b=button()
if b==1 then y=y-1:spchr 0, (the control number for the sprite that appears to be moving up)
if b==2 then y=y+1:spchr 0, (the control number for the sprite that appears to be moving down)
if b==4 then x=x-1:spchr 0, (the control number for the sprite that appears to be moving left)
if b==8 then x=x+1:spchr 0, (the control number for the sprite that moves right)
Sprites
Make a main loop such as
@mainloop
gosub @playersetup
gosub @move
Gosub @bg
Gosub @background
goto @mainloop
In other post I will explain every Gosub.
Thanks for all the support and help guys! I actually figured out that I was supposed to be using str$'s and stuff like that.
But sense you're all so awesome enough to help do you mind if I put your names in the credits. I would like to show my appreciation.