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

#1
Site & Forum Reports / broken link
Wed 12/11/2014 15:52:50
In the topic "...read this first..."" in the beginners technical questions forum, under the section Informational Resources. The link to Item #2 Getting Started with AGS by Pumaman is broken
#2
ok, What I want to happen is when a character walks in front of the window of the room, a camera will flash outside, but I only want this to happen once.

here is the script I wrote,
Code: ags
function region1_WalksOnto()
{
  int Flash; 
  Flash = 1;
  
  if (Flash > 0)
    {Wait(40);  //waits 1 second  
    oWindowFlash.Visible = true;//turns on flash
    Wait(5);                    //waits(keeps flash on for 1/8th of a second
    oWindowFlash.Visible = false;}//turns flash off
    {Flash --; //subtracts 1 from variable Flash
  }
  
}


everything works except that it does it every time I walk in front of the window.
#3
here's a more thorough description of my problem, My game has two main characters that I can switch between at any time. I do this via Buttons on the top gui menu. As of now, I just have placeholder images for the sprites for the characters so there is no animation yet. When testing my game everything looks fine when the first room loads, but as soon as I select the second character from the gui, his view changes to the one that I have set for the first character.
here are some screenshots to help explain better.


edit: found out what the problem was,

this was set to 1, set it to 0 and everything works fine now
this setting overrides the character view for this particular room.
#4
I want to be able to switch between two players using a gui, I've set up the buttons in the gui already, but don't know how to script them to actually change to the player. I would also like to have different texts display depending on what character is interacting with a particular hotspot.
I tried something like this:
Code: ags
// room script file

function hUmbrella_Look()
{
  int cID;
  cID == Character.ID;
  If cID ="1";
   then Display("It's an Umbrella,It has a tag on the handle.");
   Else Display("It's your Umbrella,It says so right there on the tag.);
}

but it didn't work,
SMF spam blocked by CleanTalk