≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Switch scene AND externally load mesh
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b]kingkohle[/b] wrote: Hi pals, since this comes down to coding I though I should rather try it here than in the CopperCube-Forum^^ I have arranged a button (2D overlay) in Coppercube with the action "when clicked do something". This should execute the following: when clicked > gotoScenebyName > when switching the scene has completed >then load a specific mesh in that scene > get sure it loads everything properly (like: engine.ingComplete or else) So when executed it should go to another scene and load a mesh in that switched scene - all done over one button. Isn't that possible?! I tried it with that script, but it isn't working: _______________ var engine = new CL3D.CopperLicht('3darea'); { gotoSceneByName("OnlyThePlayer"); engine.load('copperlichtdata/mesh1.ccbjs'); engine.ingComplete = function() { alert("loading completed") }; } _______________ I think my code in general is crap. But shouldn´t it work somehow like this? Maybe with a line inserted to just load the mesh once the scene has changed.. Please help Thx KK[/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