Help me make them fight
Demsay
Member Posts: 6
Hello im working on a hack&slash game and im starting to learn combat mechanics so i have a few question
-how do you set a certain amount of hitpoints to an actor
-how do you set the damage an actor can do
-is it possible to make an actor begin to fight when in range and if yes how to ?
-is it possible to set an "agro" range for the monsters actor and if yes how to ?
Thx
-how do you set a certain amount of hitpoints to an actor
-how do you set the damage an actor can do
-is it possible to make an actor begin to fight when in range and if yes how to ?
-is it possible to set an "agro" range for the monsters actor and if yes how to ?
Thx
Comments
For damage just amend the above -2 for bigger punch etc.
Yes it is posible to create a fight range, create a rule that says if hero is + or - let say 100 of enemy, enemy fight = true otherwise enemy fight = false.
The same goes for agro
For information about "range," try Googling gamesalad magnitude.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Now im looking for a way to make my main actor move where the screen is touched.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
i started my first project and i have now a little more complicated problem.
i have an actor B attached to another moving one A with constraint attributes XY
i have modified B X+50 and Y+2 to change its place to where i want in A
now i have made B rotating but i dont know how to change the "center" of the rotation ?
also i make my main actor A rotate and accelerate to the touch position X,Y but i would like its finish rotating before acclerating.i tried with finish autorotating and angularmotion=0 but its not working.any idea plz ?
can you help me please ?
another problem i have now :
i changed "mouse button down" to "touch pressed" in all my rules and now nothing responding in the preview...
edit: the touch pressed problem is solved i use touch outside and now its working
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User