Page 1 of 1

Hello guys, newbie here.

PostPosted: Wed Apr 05, 2006 12:49 am
by paco-mx
Hello people, yesterday I downloaded game editor and so far it looks quite friendly. I would like to know:

a) Is it c-based? in the documentation for script it states "a script language compatible with C language ", so I am wondering if I can use external c libraries (I think I would loose pocket pc + linux compatibility, but then again, just wondering).

b) where can i find some tutorials that make use of the script more extensively? I see the basic examples cover adding actors and using methods inside of them (ok, scripts), however how can I for instance, attach an actor on code on the fly? (for example in pseudocode,

Code: Select all
on mousehit button1
attach to the level actor "enemy_1"
from enemy_1, call method follow actor player


c) As i understand this so far, actors control most of the actions, just want to know if it is feasible to make a program more "global script oriented".

Hope this makes sense, thank you very much for reading.

Re: Hello guys, newbie here.

PostPosted: Fri Apr 07, 2006 4:01 am
by makslane
paco-mx wrote:Is it c-based?


Yes. The script uses the C syntax, but you can't use external libraries.

how can I for instance, attach an actor on code on the fly? (for example in pseudocode,

Code: Select all
on mousehit button1
attach to the level actor "enemy_1"
from enemy_1, call method follow actor player



You can't assign a code when execute the game, but you can put the code in some actor and start by using some event.

Using your example:

Event: Mouse Button Down, Left
Action: Create Actor enemy_1

In the enemy_1 actor:

Event: Create Actor
Action: Move To
Actor: Event Actor
Relative to: player
Position: 0, 0
Velocity: 1

To make the enemy_1 always folow the player you can put the 'Move To' action in a 'Draw Actor' event.


just want to know if it is feasible to make a program more "global script oriented


If you need make C funcitons, you can use the Global Code editor and call the funcitons from some actor.

Note: the events are your start point, so, use some event and call the function.

Take a look at Checkers demo:
http://game-editor.com/games/checkers.zip

PostPosted: Fri Apr 07, 2006 4:09 am
by paco-mx
8) Thank you very much Makslane, tomorrow I'll do some "serious research" with a small game.