How do i get creature to shoot?
mike206
Member Posts: 24
Hello everyone! I'm new to Gamesald so of course i'm still learning as i go but i was just curious if anyone knows how I can make a creature open mouth and shoot out a fireball or whatever and have the fireball destroyed on screen tap or mouse click but also have it to where if you click or tap too soon the player takes damage. Also if you click or tap on it say at like when the fireball reaches a line on the sceen the creature takes damage and you get points. Of course if you just let the fireball go by without doing anything you take damge also. I have the frames from the mouth closed all the way to open and then closed again. It's like 65 frames. I pretty much got the part for it to animate all that but someplace in there i need a fireball to come out and then all that damage and point stuff. Well that's it and Thanks in advane for the help everyone
Best Answer
-
Bellow Bartender Posts: 227Hello try this make fireball new actor and make your dragon spawn actor with the timer. and use your player if it collides with fireball destroy it and give fireball when touched destroy this actor.
So :
As a dragon actor give timer for your animation when the mouth open spawn actor fireball in the back of the actor or if you try like when i touch button fire fireball give when collide or touch spawn actor.
Fireball : give fireball acc toward position x and y with acc speed. this way your firebal going to the point and give a rule if touch destroy this actor.
for reaches a line try attribute if fireball position < x when fireball destroyed give your dragon dmg or if your fireball position > x give hero dmg .
i think you must make health bars for dragon and your player to. This is basic if you try something like that it will be helpful.
and sorry for my bad english i hope this will help you
Answers