Original Post
I am a 2nd year programmer in a computer tech class in school. I need help in a couple of areas, and any help is appreciated!
mcGrass1.addEventListener(
How would I make it so that when one of my objects touch another, it moves to another frame? Need help finishing the above code.
if (mcMonster.hitTestObject(mcLine14)){
mcMonster.y -=20
}
Pretty much the same thing as above, but that it bounces off the "Line". The code above does not work.
function numberOne(low:Number=1, high:Number=99):Number
{
return Math.floor(Math.random() * (1+high-low)) + low;
}
Here, I am trying to generate a random number. But, I cant get it into a string so I can export it to a text box on another frame. Any ideas?
And lastly:
if numberOne + numberTwo == 100 >={
numberOne = 34 && numberTwo = 13
I am checking my two random numbers so as they dont equal over 100. It dosen't work. Any ideas?
mcGrass1.addEventListener(
How would I make it so that when one of my objects touch another, it moves to another frame? Need help finishing the above code.
if (mcMonster.hitTestObject(mcLine14)){
mcMonster.y -=20
}
Pretty much the same thing as above, but that it bounces off the "Line". The code above does not work.
function numberOne(low:Number=1, high:Number=99):Number
{
return Math.floor(Math.random() * (1+high-low)) + low;
}
Here, I am trying to generate a random number. But, I cant get it into a string so I can export it to a text box on another frame. Any ideas?
And lastly:
if numberOne + numberTwo == 100 >={
numberOne = 34 && numberTwo = 13
I am checking my two random numbers so as they dont equal over 100. It dosen't work. Any ideas?