Hazard| Posted June 27, 2014 Share Posted June 27, 2014 Hello, can some of you fix the error I get of this sentence? very simple but I don't get the syntax obviously. SYNTAX: timer setTimer ( function theFunction, int timeInterval, int timesToExecute, [ var arguments... ] ) setTimer(setElementAlpha(car, 200, 1000,1)) thx. Link to comment
Et-win Posted June 27, 2014 Share Posted June 27, 2014 setTimer(setElementAlpha(car, 200), 1000, 1) Link to comment
Castillo Posted June 27, 2014 Share Posted June 27, 2014 That's wrong. setTimer ( setElementAlpha, 1000, 1, car, 200 ) Link to comment
Et-win Posted June 27, 2014 Share Posted June 27, 2014 Ow, then it should be: setTimer(function() setElementAlpha(car, 200) end, 1000, 1) Thought I could enter 1 code too without typing function() Link to comment
Castillo Posted June 27, 2014 Share Posted June 27, 2014 No need to create another function, what I posted will work. Link to comment
Et-win Posted June 27, 2014 Share Posted June 27, 2014 No need to create another function, what I posted will work. I know. Link to comment
Hazard| Posted June 27, 2014 Author Share Posted June 27, 2014 Thanks Could you do it with this one too? setTimer(setElementCollidableWith, 1000, 1, vehicle, car, false) It's a little different. thanks too. Link to comment
manawydan Posted June 27, 2014 Share Posted June 27, 2014 yes, but this function is client side "setElementCollidableWith" Link to comment
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