Thank you Mystery, Mercedes, Lucifell, and juhuwoorps for your responses.
As suggested, I will describe a bit more so you can understand more clearly what I am trying to do.
What I am trying to do is come out of one frame and go into another that will play animation immediately upon arriving to it (since the first frame of the animation matches the clip, then it looks seamless). Then, directly after the clip stops (the video dissolves to black at the end), it automatically goes back to the same frame which now has a black hotspot to match it. From this point I want to continue,
without player intervention, to the next frame by way of a dissolve. I am fine all the way up until this point. The hotspot comes up at the end in black, but I can't
simulate a click so it can proceed to the next frame, automatically. So I am stuck with the player having to intervene and click. To work around this, I put something interesting in the middle of the black frame to hopefully prompt the player's interest to hover their mouse over it. When they see the pointer, they will click. But this is not what I wanted initially.
Here is some code that works so far, if that will help. It works up until prompting the black hotspot to appear.
- Code: Select all
Action.CreateTimedEvent 11, "VAR1 = 1", FALSE
PlayVideo GetPath(2) + "video.avi", 0, 0, 640, 480, False
'video is approx. 11 seconds
'VAR1 triggers black hotspot to appear at end of video
I have tried using the CreateTimedEvent to trigger the simulated click at the precise time, but I just can't get it to work, no matter how many different variations I try.
The only thing that
does seem to work with this function is that in a test project, when I create another hotspot (hotspot B) and use the SimulateHotspotClick code in it with hotspot A's hotspot number, by clicking hotspot B, I am able to trigger the actions in hotspot A (which was not clicked). But this still is using player intervention...something I am trying to avoid.
I hope that helps explain my dilemma better. Thanks for all your help with this--any additional help would be truly appreciated.
Cya
@Mercedes - So why is your game on hold?

And nope, I am not using a plugin for the animation...just one I created.
