≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Change built-in behaviours?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: I prefer to use external scripts for key events as the inbuilt behaviors for the key events are slow and have some delays executing the action, I don't know why but javascript key events are much faster. @VP you can either use the script provided by @robo which is more specific to the task. or you can use the script below, in the below provided script you can provide the key code that you want to use for the keypress and can execute the action only once on key down or key up, also there is an option [b]Hold[/b] if you use that it will repeatedly execute the key down the action, useful when shooting bullets, etc. You can check the keycodes for the keys here:- [URL]https://www.toptal.com/developers/keycode[/url] Download the extension from here:- [url]https://cdn.discordapp.com/attachments/962883318238552084/993817601841053726/ccb_behavior_external_keypress.zip[/url] For accessing the behaviors parameter, then unfortunately no, you can't access the parameters for the inbuilt behaviors, we can only do that for external scripted behaviors only. if you want you can use the Collision detection API of CC, to create custom collide when moved behavior but the Collision detection API is really slow, and it will affect the gameplay drastically. So it is best to stick with the inbuilt collide when moved behavior. However, you can create rays for collision detection for the front and back tires of your vehicle that is drawing only two small rays to check the collision with the ground, and based on the collision of the tires with the ground, we can create a Better inclination or mimics better simulation for the bike or car by rotating it. For example, if the front tire has no collision with the ground then rotate the whole object on the Z or X-axis depending on the vehicle facing direction, until it touches the ground. The same goes for the rear tires as well. Hope that bit of info is helpful or useful. Also, I really liked the BIKE movement a lot. Great job keep it up.*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