Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Help with optimization

spicymilk
Registered User
Quote
2023-04-01 23:47:37

So I'm making a game where yo rob a bank and every time there are cops running a script the game will lag and is unplayable I have a good pc and that shouldn't happen any suggestions?


just_in_case
Moderator
Quote
2023-04-02 00:36:29

It depends on the script and how you are executing it. Or maybe it is something else in your game. It will be hard to tell, what's happening.
are you executing the script on every few seconds? try increasing the time value if that helps.
or maybe you can post the exe so that we can try playing and can suggest you, what might be causing the issue.


spicymilk
Registered User
Quote
2023-04-02 02:11:06

Here's the exe. https://1drv.ms/u/s!AuQLKai9PEBF...


just_in_case
Moderator
Quote
2023-04-02 08:24:31

Hi just tried the exe, thanks for posting it. It seems the issue is with cops, maybe you are using some customised script with them, the game starts to play smooth once all the cop dies, and it will only lag when you get close to the cops where they dies. So it's something that has to do with cops.
If you are using the inbuilt AI, make sure to delete the cops when they dies.


spicymilk
Registered User
Quote
2023-04-02 18:20:31

Thankyou for trying it I'm running a custom script for the cops.
I realized it was running every frame for every cop and so I Thing I've got it fixed.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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