Verbcoin Animated Icon

Started by flotilla, Thu 17/06/2010 20:04:42

Previous topic - Next topic

flotilla

Hi, I would like to have a simple interface with two icons look/interact.  I am using verbcoin that seems to be the closest match to what I want, however I was wondering if there is
a way of using small animated icons on the verbcoin instead of the default two states for the icon eg mouse-on or mouse-off. 

I would like it to run a small animation for example a view instead of the two different images eg open hand/closed hand

any ideas?

Ryan Timothy B

I'm assuming the verbs are buttons on the verb coin.  You'll want to use:
Code: ags

Button.Animate(view, loop, delay, RepeatStyle)


Check it out in the manual if you need assistance with it.

flotilla

#2
Ok, finally managed to work this out if anyone is interested. Sorry if this is really obvious but I thought it would be helpful to anyone else trying to
find a solution

When using the Verbcoin template the button animate line should be added in the SCUMM Verbcoin.asc here:



//===================================================================
// @OVERHOTSPOT@ LABEL GUI when over verbcoin button
//-------------------------------------------------------------------

  else {
      /*LOOK ACTION*/
   if (control == look_button){

        interact_button.Animate(4, 0, 4, eRepeat);            <<<<<<<<<<<<<<< ADDED HERE   interact_button references the button in the verbcoin GUI you want to change
   
       gui[verbc_id].BackgroundGraphic = verbgraphic_button1;
        if (custom_1 == "" && usedefaultaction == true && default_look != null){
          overhotspot.Text = default_look.Append(location_name);
        }
        else{
          overhotspot.Text = custom_1;

this will replace the button with a view of your choice


stepsoversnails

this thread has gotten me closest to having the verb coin animated but it still wont work properly.
It animates the button but it appears off to the lower right side and cropped. Also is only animates when my mouse is on any of the other buttons but the button i want to animate.
i know this is an old thread but any help would be great.
thank you.

SMF spam blocked by CleanTalk