1 Attachment(s)
Can't figure this out and need help...
Hi I making a shooter with a cannon and have one cannon like this:
AnglePoints( "Clickteam Movement Controller", X( "Cannon" ), Y( "Cannon" ), XMouse, YMouse) All is good with this!
Now I would like the other cannon to be computer controlled with events I will write,.but I can't do this as I'm having a difficult time trying!! I want to set the computer controlled cannons angle at random and them fire the cannon ball,.but I want it to go up and down like it's thinking of the angle to set first then it sets the angle and then fires. I tried using another active object that is in front of the cannon and would have bouncing ball movement and have it move up and down the screen and the cannon would set it's angle to the Y position of the active when I have the actives movement stop. I tried this and keep getting an error in the expression editor using,..
AnglePoints( "Clickteam Movement Controller", X( "Cannon2" ), Y( "Cannon2" ), Y( "Active 3" )
Here is a picture of what I'm thinking or is there a simple solution?
Thank you,
John