Page 1 of 1

A slight problem with an ebook

Posted: Wed Nov 28, 2007 8:07 pm
by GMer
I have read Making 3D games with reality factory, and I have come upon a slight problem... :shock:
Apparently, the "MoveFoward" command on page 133 is not recognized in the script, the debug message says it doesn't know what "MoveFoward" means. Is the book slightly out-of-date, or is the script I made following the book messing up! I reeeeeeeealy want to know how to make mobile monsters, If anyone can help, I'll post (if I can get the copyrights) the game I am planning on making! :D

Posted: Wed Nov 28, 2007 9:44 pm
by Jay
It depends if you are in High-level or in Low-level. It can be quite difficult for a beginner to distinguish between the two, but the main difference is this: Low-level orders are executed in exactly one frame, whereas high level orders can take many frames to execute (an example is the MoveForward command, it is very likely that it takes a few frames until the pawn is at the destination point). You can not mix the two types in one order (and that makes sense, because sometimes you have to make sure that the execution only takes one frame).
That means, the whole order has to be either low or high level. That does not count for the whole script, though. You can switch between LowLevel and HighLevel with the LowLevel(...) and HighLevel(...) commands.

MoveForward(...) is a Highlevel command. It is likely that you are in LowLevel when you wanted to execute the command.

Try this:


//somewhere ín your order
...
HighLevel("Walk");
return;
...

Walk[ ()
{
MoveForward(...);
} ]

Looking up in the docs under scripting might also help you.

The book may be a bit old, but it's not outdated because RF is downward-compatible.

tee hee!

Posted: Sun Dec 02, 2007 11:46 pm
by GMer
I have figured out what I did, I spelled forward as foward