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!
A slight problem with an ebook
A slight problem with an ebook
I have read Making 3D games with reality factory, and I have come upon a slight problem...
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!
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!
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
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.
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.
Everyone can see the difficult, but only the wise can see the simple.
-----
-----
tee hee!
I have figured out what I did, I spelled forward as foward
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56