Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
How to program melee?

beanshapedboat
Registered User
Quote
2023-04-13 03:52:03

Any way to program melee attacks? My initial thoughts would be set a damage range via "on proximity do something"


Guest
Guest
Quote
2023-04-13 04:23:49

Some people in the forums mention using Every Few Seconds Do Something > Shoot as well.


beanshapedboat
Registered User
Quote
2023-04-13 05:19:06

Guest wrote:
Some people in the forums mention using Every Few Seconds Do Something > Shoot as well.


How would that equate to melee?


Guest
Guest
Quote
2023-04-13 06:38:34


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.


aiming bullets
Guest
Quote
2023-04-13 06:51:10

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact