AGS Support > Modules & Plugins
MODULE: Easy3D v1.04 - Create 3D games
ncw14:
trying to run it on 3.2.1 but wherever i put this code in the global script, it tells me unexpected if, or undefined symbol "interface"
if (interface==gE3d.ID)
{
E3d.InterfaceClick(button);
}
if i run it without this code it crashes and says "DynamicSprite.CreateFromBackround:invalid frame specified". this might just be a problem with my room layout though
Dualnames:
The code goes to the interface section, not just anywhere on the global script.
Crimson Wizard:
--- Quote from: Dualnames on 18 Dec 2012, 12:52 ---The code goes to the interface section, not just anywhere on the global script.
--- End quote ---
What is this "interface section"? Do you mean some function?
Dualnames:
From the manual:
In your main global script file, there are some functions which are automatically added when you create the game. These are global events, and the function is called when a particular event happens. There are also some other events which you can add if you want to.
The available event functions are:
interface_click (int interface, int button)
(Now Obsolete) Called when the player clicks on a button on a GUI which has its action set as "Run script". INTERFACE is the number of the GUI which they clicked on. BUTTON is the object number of the button within this GUI.
Navigation
[0] Message Index
[*] Previous page
Go to full version