≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How to do this?
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: I didn't see this post strangley, (the forum is sending my notifications for new posts, but somehow I didn't get one for this), sorry for this. You won't have setInterval() or setTimeout() because that is a functionality from the browsers. In standard JavaScript, you don't have something like this, that's why you will find this function only when using CopperCube with Flash or WebGL. That's why you need to use something different. You can for example attach a "every few seconds do something" behavior to the root of your scene, and call your code, or any function inside that. With this, you can emulate that setInterval() function. So what you want is to store an amount of tiles to move somewhere, and everytime a function is called, you need to move the object a bit of that. The solutions the other users posted here are valid, you only need to use something like the behavior I mentioned above to do this. Or like 'wild-master' mentioned, that DoLater function would also do the trick.[/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