Okay, I have TGF. I am making a point and click adventure game. I have an object that's the talk/hand/look icon, but I need the animations to change when you right click.
EXAMPLE:
Right click 1 change animation to look
right click 2 change animation to hand
right click three change animation to talk
right click 4 change animation to look
and then it loops.
I have tried MANY,MANY things and cannot get it right! (Which is annoying because I did it before and then lost the file....)
Now, I've added a walk icon. How would I make the character move? I think that you do this: you set the movement to bouncing ball and then whenever somebody clicks and the walk icon is up it creates an object that the character bounces toward. Is that right?
Yeah, make the character face the target object you created, then start its bounce movement. When the character collides with it - stop the character's bounce movement and destroy the target object. Remember to destroy the old target object if the mouse is clicked before the character has reached it.
If TGF supports loops, you should try custom movement instead. It will be difficult to use built-in movements smoothly when you add obstacles. Using things like sin & cos to reposition the character and using loops to back-track out of obstacles will give you more control.
Okay now, for some reason even this simple event isn't working!
This is what I want it to do: When the user left clicks and animation "walk" is playing, it creates an object.
This is my code:
*User clicks with left button
+(eye) animation walk is playing
Create X at (0,0) from (eye)