1 registered members (AndrewAMD),
14,661
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: help please
[Re: GameMaker60]
#129562
05/12/07 21:47
05/12/07 21:47
|
Joined: May 2004
Posts: 1,510 Denmark
Claus_N
Serious User
|
Serious User
Joined: May 2004
Posts: 1,510
Denmark
|
You should put a wait(3) after the level_load command, to wait for the level to be loaded - though I doubt it would solve the problem... And why do write "function bone_move()" just before main? If you want to create a function, you need the { and }, and if you want to create a prototype, you need the semicolon ;  And your action is called the same, so you actually should get an error!?  About the mouse... You need to be able to move it, right? Then you need some code - have a look here: http://www.nighthawk.dk/v5/index.asp?PageID=ShowArticle&ID=19Quote:
A frankly this is the first code I have ever made in C, so please don't hammer me.
Well, if it the first code you have made, it looks very good - keep it up, and you'll be a great programmer 
|
|
|
Re: help please
[Re: GameMaker60]
#129564
05/13/07 00:14
05/13/07 00:14
|
Joined: May 2004
Posts: 1,510 Denmark
Claus_N
Serious User
|
Serious User
Joined: May 2004
Posts: 1,510
Denmark
|
Well, I am sorry that I can't see anything else that could be wrong... :/ Here is an example of a function prototype: Code:
function func_a(); // Prototype of func_a function func_b() { func_a(); } function func_a() { beep; }
func_b uses func_a, but as func_a is defined after func_b, func_b does not know that it exists, and that would give you an error. So, you make the prototype, which just tells func_b (or any other function) that a function with the name func_a will be defined later, and then func_b won't give you an error. Look in the manual under C-Script -> Syntax -> Functions
|
|
|
|