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 - Apocalyptic

#1


preschoolers anyone? What is the world coming to when creamsickles and little girls asses are being sold in the same advert?
#2
Critics' Lounge / Avatar under construction
Sun 07/03/2010 08:26:03
How can i improve my avatar? i need ideas for a background. I originally wanted to draw a cathedral, but it was too dark. I think for my avatar to stand out it needs a bright background.


this for example  :P
#3
I have searched the forums but i still have a problem. Im trying to get multiple playable characters in the same room and change between them by interacting with them. but its not working i cant change characters

Code: ags
function cEgo_Interact()
{
  if (player == cABC||cXYZ) cEgo.SetAsPlayer();
}

function cABC_Interact()
{
  if (player == XYZ) cABC.SetAsPlayer();
}


The first Function returns the error: Type mismatch: cannot convert 'int' to 'Character*'
The second function does not return an error but does not seem to work
I have also Character.ID. which does not return an error when i have multiple entries in the if statement, but the code still doesn't work in the game.
I'm also trying to set the right mouse click to the look interaction and the left to the interact interaction or use current inventory. But due to my limited knowledge of the ags scripting language no matter what i try whenever i use the left mouse button it always changes from inv to interact

Code: ags

#sectionstart on_mouse_click  // DO NOT EDIT OR REMOVE THIS LINE
function on_mouse_click(MouseButton button) { // called when a mouse button is clicked. button is either LEFT or RIGHT
  if (IsGamePaused() == 1) { // Game is paused, so do nothing (ie. don't allow mouse click)
  }
  else if (button == eMouseLeft) {
    if (player.ActiveInventory == null){
      mouse.Mode = eModeInteract;
      player.RunInteraction(eModeInteract);
    }
    else {
      mouse.Mode = eModeUseinv;
      player.RunInteraction(eModeUseinv);
    }
  }
  else if (button == eMouseRight) {
    mouse.Mode = eModeLookat;
    player.RunInteraction(eModeLookat);
  }
 }


In serious need of help  ???
SMF spam blocked by CleanTalk