Hazard| Posted June 27, 2014 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.
Castillo Posted June 27, 2014 Posted June 27, 2014 That's wrong. setTimer ( setElementAlpha, 1000, 1, car, 200 )
Et-win Posted June 27, 2014 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()
Castillo Posted June 27, 2014 Posted June 27, 2014 No need to create another function, what I posted will work.
Et-win Posted June 27, 2014 Posted June 27, 2014 No need to create another function, what I posted will work. I know.
Hazard| Posted June 27, 2014 Author 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.
manawydan Posted June 27, 2014 Posted June 27, 2014 yes, but this function is client side "setElementCollidableWith"
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