Clock Crew

Community => General Discussion => Topic farted by: SouvlakiClock on June 22, 2009, 09:16:58 PM

Title: AS: Any reason this wont work?
Post by: SouvlakiClock on June 22, 2009, 09:16:58 PM

this.y+= (random*2 +1);
Title: AS: Any reason this wont work?
Post by: Thor on June 22, 2009, 09:19:09 PM
this.y should be this._y

edit: Also, you used the "random" tag wrong. it should look like this:

random(#);

where the # would be replaced by any number and the random function would return a number between 0 and 1 less than the number entered. So

random(8);

would return 0, 1, 2, 3 , 4, 5, 6, or 7
Title: AS: Any reason this wont work?
Post by: SouvlakiClock on June 22, 2009, 09:20:17 PM
ill try it out, im using AS2 if that makes a difference.
Title: AS: Any reason this wont work?
Post by: Thor on June 22, 2009, 09:25:59 PM
You know that increasing _y makes something go DOWN the screen right?

edit: The code corrections I gave you were for AS2.0
Title: AS: Any reason this wont work?
Post by: SouvlakiClock on June 22, 2009, 09:33:13 PM
Quote from: Thor, God of Thunder;1604841You know that increasing _y makes something go DOWN the screen right?

yup its what i want
 
Quoteedit: The code corrections I gave you were for AS2.0

thanks, gonna have to rewrite the code for every bullet and let you know if it orked tommorrow.
Title: AS: Any reason this wont work?
Post by: Thor on June 22, 2009, 09:42:42 PM
If you can't get it to work just PM me all the code and what you WANT it to do and I'll fix it so it works.