≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Coppercube RPG Health /Stamina system
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: You can use variables for that, there are global variables for health and movement you can use that to compare the stamina and health. Name of the variables are as follows. [Code] [Hashtag]player.movementspeed [Hashtag]player.health [/Code] Here hashtag is the hash symbol, and player is the name of te scenenode whose speed or health you want to compare. And instead of using a scenenode as a bullet you can use shoot directly. And only shoot it when in proximity with the enemey so that it will act as a melle attack. Once again you can use variables for that. For example attach an on proximity do somthing to your behavior with the desired radius and then set a variable "shoot" with value "true" or "1". Now attach another behavior when a key is pressed do something set whatever key you want it to use for shooting. Generally left mouse click. And then attach an action if a variable has a value then do something. Variable name "shoot" Value "true" And then attach the shoot action. With setting direct hit no bullet. This way you can acheive something like that. *holy**holy*[/quote]
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