Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Wed 06/01/2016 15:29:49

Title: Disable AnimateOnlyOnHotspots
Post by: Slasher on Wed 06/01/2016 15:29:49
Hi

I'm looking for the best way of disabling AnimateOnlyOnHotspots...

There are a number of objects that the cursor can change into but the AnimateOnlyOnHotspots always shows the second frame of view.

EDIT: With this i am almost there

Code (ags) Select

 
function obleach_Interact()
{
mouse.ChangeModeGraphic(2, 1489);
obleach.Visible=false;
}

function obucket_Interact()
{

if(mouse.GetModeGraphic(eModeInteract) == 1487 ){
cBond.Phylactere("Add charcoal.");
mouse.ChangeModeGraphic(2, 563);
add_bucket=(add_bucket +1);
}
  else if(mouse.GetModeGraphic(eModeInteract) == 1488){
cBond.Phylactere("Add antiseptic.");
mouse.ChangeModeGraphic(2, 563);
add_bucket=(add_bucket +1);
}
  else if(mouse.GetModeGraphic(eModeInteract) == 1490){
cBond.Phylactere("Add fuel.");
mouse.ChangeModeGraphic(2, 563);
add_bucket=(add_bucket +1);
}
  else if(mouse.GetModeGraphic(eModeInteract) == 1489){
cBond.Phylactere("Add bleach.");
mouse.ChangeModeGraphic(2, 563);
add_bucket=(add_bucket +1);
}
else {
cBond.Phylactere("I don't need to move the bucket.");

}
}

function repeatedly_execute_always()
{
  if(mouse.GetModeGraphic(eModeInteract) == 1487)
  mouse.ChangeModeGraphic(2, 1487);
 
  if(mouse.GetModeGraphic(eModeInteract) == 1488)
  mouse.ChangeModeGraphic(2, 1488);
 
  if(mouse.GetModeGraphic(eModeInteract) == 1490)
  mouse.ChangeModeGraphic(2, 1490);
 
  if(mouse.GetModeGraphic(eModeInteract) == 1489)
  mouse.ChangeModeGraphic(2, 1489);
 
}