Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - AlphaCodeOverride

#1
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
      }
#2
Hi, I'm new to this forum, and Semi new to AGS, and if I'm on the right part of the forum, I have a possible scripting question.

In the game I'm helping to make, I need to get a picture of the face of the person i am talking to to show up next to the person when the actual person is clicked. I assume i can make this happen by inserting the face picture as an object and making it a hotspot that is hidden until an interaction is made such as clicking on the person, but i don't want it to go to inventory AND i DO want it to dissapear again when I'm done talking to that person. Kind of like some of those games where the face of the person you talk to pops up when you're talking to them and goes away when you're done like the infolink in Deus Ex for an example. My question is, is it possible to do this in AGS and if so, how do i do it in scripting?
SMF spam blocked by CleanTalk