Hi, after getting one problem sorted i ran into another. I have a piece of script i am trying to utilize in my game and it keeps telling me i have an open or missing function. no matter what i seem to do it keeps telling me this. any help in discovering my flaw would be appreciated.
Here's the script.
function on_mouse_click(MouseButton button) {
// called when a mouse button is clicked. button is either LEFT or RIGHT
if (mouse.Mode==eModeWalkto && IsKeyPressed(eKeySpace) == 1) {
//if Walk cursor is selected and player is pressing the spacebar
if (mouse.IsButtonDown(eMouseLeft)) {
//if player presses left mouse button
player.x=mouse.x;
player.y=mouse.y;
player.PlaceOnWalkableArea();
//make cWoman coordinates the mouse's current coordinates
//AND place her on nearest walkable area
}
Here's the script.
function on_mouse_click(MouseButton button) {
// called when a mouse button is clicked. button is either LEFT or RIGHT
if (mouse.Mode==eModeWalkto && IsKeyPressed(eKeySpace) == 1) {
//if Walk cursor is selected and player is pressing the spacebar
if (mouse.IsButtonDown(eMouseLeft)) {
//if player presses left mouse button
player.x=mouse.x;
player.y=mouse.y;
player.PlaceOnWalkableArea();
//make cWoman coordinates the mouse's current coordinates
//AND place her on nearest walkable area
}