Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Any way to program melee attacks? My initial thoughts would be set a damage range via "on proximity do something" |
||||
|
Some people in the forums mention using Every Few Seconds Do Something > Shoot as well. |
||||
|
Guest wrote: Some people in the forums mention using Every Few Seconds Do Something > Shoot as well. How would that equate to melee? |
||||
|
Easiest to make use of the inbuilt 'Game actor with health' under game behaviors - attach that to main player camera and to each enemy. Setup accordingly and link a keyboard or mouse action for your main player attack to "shoot" under 'Game and sound' - then setup distance etc. You can setup enemies similiar with either melee or shooting and create variables to check when within certain distance to you then attack using the 'shoot" function above. Search the forum with the word "melee" to find out more. |
||||
|
simply set a range for a shoot bullet to very low so that when you are in range of the enemy then only the enemy will get damage, there is no need for proximity. the bullet will deal the damage, just decrease it's range of shooting. |
|