Hi,
I'm having a bit of brain bother at the moment.
I am looking for a way to capture (mouse clicking) on an animating button.
The player enters a room, a button is animating (flashing).
If the player clicks on the button whilst it is animating he gets ChurchHelp =1 else if the button is not animating he gets ChurchHelp =0. On both occasions he goes to Room 17 where Church function carries out the ChurchHelp check and responds accordingly and then returns to room and the animating button stops and ChurchHelp=0.
This animating button animates in further rooms until it is clicked.
There is not a check for if Button animating afaik.
What I have so far:
On Room on Load:
Code: ags
Animating Sprites, in order: 710 2997 710 2997
Can you assist me please..
cheers
I'm having a bit of brain bother at the moment.
I am looking for a way to capture (mouse clicking) on an animating button.
The player enters a room, a button is animating (flashing).
If the player clicks on the button whilst it is animating he gets ChurchHelp =1 else if the button is not animating he gets ChurchHelp =0. On both occasions he goes to Room 17 where Church function carries out the ChurchHelp check and responds accordingly and then returns to room and the animating button stops and ChurchHelp=0.
This animating button animates in further rooms until it is clicked.
There is not a check for if Button animating afaik.
What I have so far:
On Room on Load:
if(HasPlayerBeenInRoom(17)){ // Church Room already visited
Button74.NormalGraphic=710; // Church button normalgraphic
ChurchHelp =0;
}
else if(!HasPlayerBeenInRoom(17)){ // Church Room not yet visited
Button74.Animate(17, 1, 4, eRepeat); // Church button flashing
if (Button74.Animate(17, 1, 4, eRepeat))
ChurchHelp =1;
Animating Sprites, in order: 710 2997 710 2997
Can you assist me please..
cheers