LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Walking Engine

Root / Submissions / [.]

GreedyGoat8Created:
Download:5ZNQV384
Version:1.1Size:About 2.6KB
A simple walking engine I have created by myself with a little help from the built in tech demo in sample programs. I have designed this engine for Legend of Zelda and Pokémon-type games. Viewers who decide to use this program are welcome to do so, but it would be greatly appreciated if you could include me in your code or credits(of course, this is optional.) If you want to get rid of the background, then just delete
@PUTS
and it’s gosub in the loop. This will also hopefully be what I use in the RPG that I am currently working on; be on the lookout for that. Last thing: If anyone wants to tweak it a little bit or have any tips to possibly make it better, then please message me and you will be recognized.

Notes:

I may tweak it every now and then to make it better or more appealing for rookies. UPDATES Faster walking speeds

... Please don't use label loops.

Replying to:chicken
... Please don't use label loops.
What do you mean?

Replying to:chicken
... Please don't use label loops.
Ohhhh. I know what you mean. I did not use any “label loops.” I was describing if a person wanted to use this needed a different graphic screen to just delete what places the walls and the grass. After all, it is just for looks and possibly other examples. Please don’t just guess like that. Have a good day!

Replying to:chicken
... Please don't use label loops.
Probably not really what chicken meant. Label loop:
@LOOP
 'Stuff
 GOTO @LOOP
Loops like that aren't really preferred by some people. Instead FOR, WHILE, and REPEAT loops are used. DEF functions are sometimes used as well.

Replying to:chicken
... Please don't use label loops.
you too

Replying to:chicken
... Please don't use label loops.
I know what he meant. He has a thread on it. For the loop that it was used in, I did it like this:
FOR I=0 TO 1
 GOSUB @MINIT
 GOSUB @SPINIT
 GOSUB @BGINIT
 GOSUB @ANMINIT
 GOSUB @PUTS
NEXT
As you can see, I used a FOR loop. Even though there was no purpose, I did it to make it look neater.

Replying to:chicken
... Please don't use label loops.
Oh yeah I forgot to mention why DEF blocks were significant. They are less error-prone than GOSUB.