≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Action act pretty... Slow
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]dekon_17[/b] wrote: So, yeah, I've built a shooting action that works with hitboxes, that's cool. One small issue: [img]https://i.postimg.cc/QMYSdVyj/p.gif[/img] It works slo-o-o-ow. I just don't know, might it be because a lot of stuff happens in the begining of action (in "prototype.execute" part)? I mean, it looks like this: [code]var Pos = ccbGetSceneNodeProperty (this.ShootFrom, "PositionAbs"); var Rot = ccbGetSceneNodeProperty (this.RelativeTo, "Rotation"); var PosRel = ccbGetSceneNodeProperty (this.RelativeTo, "PositionAbs"); this.Node = ccbCloneSceneNode (this.Bullet); ccbSetSceneNodeProperty (this.Node, "Position", Pos); this.Dir = PosRel.substract(Pos); this.Dir.normalize(); this.OldPos = null; var me = this; this.Func = function() { me.Fire(); }; ccbRegisterOnFrameEvent (this.Func); this.StartTime = new Date().getTime(); this.Folder = ccbGetSceneNodeFromName ("Enemies");[/code] This 25-50 ms delay in bullet spawn is just... Ridiculous. Do I understand the issue right?[/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