Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Action 'do later'

Bogo94
Guest
Quote
2016-12-23 11:18:46

Hello everyone,

the action do later is perfect for me for macOS target, but for windows is very buggy...

I don't know why, can someone help?


I made:

When clicked on this do something (make visible scene node)

do something later --> 2000ms (make invisible this scene node)


For mac OS there are no problems, but for windows sometimes the scene node doesn't disappear, sometimes it disappears in less than 300ms.

I tried to re-download the script from the download page, but nothing...


Bogo94
Guest
Quote
2016-12-25 18:45:00

Please, I need this to be fixed... Someone that can help?


techno-valley
Registered User
Quote
2016-12-25 23:35:34

Hello Bogo94,

Make sure that you don't have any other timer actions are interrupting this action.


You can post your ccb file or contact me on my website http://www.techno-valley.com to send me the file to check it if you don't mind.

I used this in too many actions in the game I've developped. You can download my demo game to see how it works
http://www.letterskingdom.com


Bogo94
Guest
Quote
2016-12-26 10:55:46

Hi Techno-valley thank you for your reply.

I can't share my file to the public, can you please tell me your e-mail and I will send you the .ccb file?

Thank you...


techno-valley
Registered User
Quote
2016-12-26 12:30:19

ok Bogo94,

here it is
support [at] letterskingdom [dot] com

I'm the only one who reply to this address


Bogo94
Guest
Quote
2016-12-26 15:57:29

Thank you, check your email inbox folder :)


Bogo94
Guest
Quote
2016-12-26 19:33:45

I think that I found where the problem is...

In the first scene of my game, there is a "before first drawing do something" action. Inside this action there is a javascript code:
target = ccbGetPlatform();

if (target == 'windows') {

system ('echo|set /p=%username%> temp.txt');
}

else if (target.toLowerCase().indexOf('mac') != -1) {

system ('printf $USER > temp.txt');
}

var leggiNome = ccbReadFileContent('temp.txt');

ccbSetCopperCubeVariable('nome',leggiNome);

This code creates a .txt file with the current logged in username (windows and mac os), and then coppercube will read this username and put it into a variable $nome$ (name) in the game.

I tried to skip this scene, and run the game starting with the second scene. And guess what? There is no problem with 'do something later' action.

So I think that the problem is the javascript code interacts in some way with the 'do later' action.

Please can someone help?

P.S. If this is the problem, Niko you can consider it a new thing to put in your to-do list


techno-valley
Registered User
Quote
2016-12-26 21:40:33

You're right Bogo94 !

It seems that the ccbGetPlatform(); function affects the timer functionality on windows platform.
(I didn't test on mac)

Probably, Niko may check this.


Create reply:


Posted by: (you are not logged in)


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