Objects-Chatacters blocking Hotspots

Started by barefoot, Sun 21/02/2010 21:40:48

Previous topic - Next topic

barefoot

Hi

I know that Objects and Characters block Hotspots, but is there another way to allow Hotspots on Characters?

The Character does talk, otherwise I could embed on the Background.

I have set up several Hotspots that work with an Inv Item, but of course the Hotspot is activated off-set... I have placed the Hotspot dot in various places on inv item.

SCENERIO:

A Character is chained up (so unable to move) and is hit with a baseball bat, I wanted a different reaction depending on where he is hit.. and in a certain place the character spills the beans, as it were...


Example of one Hotspot I am using:

Code: ags

function hHotspot2_UseInv()
{
if(player.HasInventory(ibat))
     {
         
     johnny.Say("Ouch you son of a bitch. Ok, I'll talk!!!");
     
hHotspot1.Enabled = false;
hHotspot2.Enabled = false;
 cEgo.Say("Tell us where Diva Maria is!!!");
   }
  else
  {

 
  johnny.Say("That won't work sonny!");

  }
}



Cheers for any insight into this

barefoot
I May Not Be Perfect but I Have A Big Heart ..

Khris

You could use just the head as character, draw the rest on the background, then use multiple hotspots.
If it needs to be animated, use an Object with its .Clickable property set to false.
Btw, the line needs to be
Code: ags
  if (player.ActiveInventory == iBat)

Otherwise, everything can be used to give that result as long as the bat is possession of the player.

barefoot

#2
Yeah.. just spotted the Has inv instead of Active inv bit...  lol

About the Head: That seems a great way....

thanks for the idea Khris

cheers
barefoot

UPDATE: Works a treat.... thanks......
I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk