alperen Posted April 8, 2019 Share Posted April 8, 2019 Hi, in game chapter, in following example, setInterval method only run once with 500 miliseconds time value. Actually it must run per 500 miliseconds, why it run only one time? Thanks. Link to comment Share on other sites More sharing options...
JMRKER Posted April 11, 2019 Share Posted April 11, 2019 Difficult to comment on the "following example" when it is unavailable. šµ Link to comment Share on other sites More sharing options...
dsonesuk Posted April 11, 2019 Share Posted April 11, 2019 Usually it is within a function that manipulatesĀ the object position and at the end calls the same function again using setInterval and so it continuously loops again and again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now