Under rating threshold (hideshow)
Would have been nice if they had sections for vertical shooters... To get it to scroll vertically, use _y += (input #) and for the loop, use (_y > (input #). Hope that clears things up!
Under rating threshold (hideshow)
No matter what I do I can't get the backround to scroll, I keep getting this message:
The class 'Background' needs to be defined in a file whose relative path is 'Background.as'.
and:
Statement block must be terminated by '}'
and:Syntax error.
I have my backround code like this:
class ackground extends MovieClip
{
function onEnterFrame()
{
_x -= 1;
if(_x < -2110)
{
_x = 0;
}
}
Could some one help?
Under rating threshold (hideshow)
It works every time however we are making trivial mistakes... Once you make it work by problem solving. If you cannot do that then go learn programming logic and come back.
However, I will admit the tutorials are unclear, they make you learn flash by problem solving.
Under rating threshold (hideshow)
This keeps showing up on my compiler errors tab "The class 'Backgound' needs to be defined". And I can't get the background to scroll, I've followed the tut all the way through. Help?
Under rating threshold (hideshow)
@Jaycerulz. that sucks that your Dad turns the internet off. Does he also turn the computer off? Because if he does not turn the computer off then just have the tutorials loaded up. Like have a seperate page or tab for each tutorial. The only problem is if you need to download a sprite or background. I hope this helps!
Under rating threshold (hideshow)
These tutorials are amazing. They actually teach you. I have already finished my first game. See it at http://www.kongregate.com/games/rosslyn568/planet-defender ---- anyway, great tut. 5/5
Under rating threshold (hideshow)
i'm stuck on page 4! i copied the code for the background to scroll and it won't scroll! plz help! note: i'm using Flash CS4 and i saved the .fla as a CS3 .fla.
Under rating threshold (hideshow)
Did first tute, really easy and fun. Second one should be a blast, too! I never thought that actionscripting would be so... Easy!
Under rating threshold (hideshow)
@Thezanman
That is cuz the code is wrong.
class Background extends MovieClip
{
function onEnterFrame()
{
_x -= 5;
if( _x < -2110 )
{
_x = 2110;
}
}
}
Under rating threshold (hideshow)
@Kador11: He could've misnamed the Background.as file.
@saberioninja: Have you used the code from page 7 of this tutorial? Make sure you change the values to match your file.
Under rating threshold (hideshow)
These tuts work, YOU JUST NEED TO KNOW A FEW PROGRAMMING TIPS.
1. It's Case Sensitive, if you spell it IlIKePiE then spell it that WAY!
2. On the back ground you need to change the values of when it's gonna change. other wise it's not gonna work properly.
Under rating threshold (hideshow)
@Kizzi: Yes all of the .as files are saved in the same directory as your .fla else it would search for something that is not there.
Under rating threshold (hideshow)
On Page 7 line 8
_x = 0;
i got this error
ActionScript 2.0 class scripts may only define class or interface constructs.
Source : } Alittle Help?
Under rating threshold (hideshow)
Alright, i have started a new project. My background scrolls up perfectly fine. I just can't get it to loop. Any help? Thanks.