ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator health bar script
person icon
o139
Registered User
Quote
2023-12-19 08:16:11

here is a hp bar script if anyone needs it.

put it on the 2d overlay with the hp bar image with every 1ms execute javascript.

you may need to modify the player name in the script

var power = ccbGetCopperCubeVariable ("wiz.health");
ccbSetSceneNodeProperty(ccbGetCurrentNode(), 'Width (percent)', power/5.83);


note there is a hashtag before wiz.health.

note you need to change the nr 5.83 to the length of the hp bar.

note player must have actor behavior

cheers!

person icon
andgameplay
Registered User
Quote
2023-12-20 22:07:55

Good thanks!

person icon
Monks
Guest
Quote
2023-12-21 03:38:13

Hello guys, can someone please actually guide me on setting up my custom character as an enemy ai

person icon
o139
Registered User
Quote
2024-01-04 14:05:04

monks its a long process but you can read about it probably in the coppercube docs

person icon
jctech
Registered User
Quote
2024-01-04 15:56:19

Monks wrote:
Hello guys, can someone please actually guide me on setting up my custom character as an enemy ai



Hi Monks

Your character, is it an animated 3d model?

What type of game are you implementing this character in?


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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