Recent posts by Cartmane on Kongregate

Flag Post

Topic: Game Programming / Beginner needing help..!

Java* sorry

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Ok so after a while I decided to try C++, so thanks for the help, and i’ll be back when i’m more experienced. I’ll still be posting.

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Yeh I knew that >.o

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Thanks guys, I get it now. because I thought it had to be

randomcode {

trololol }

because i thought the } was the closing brace >.< i’ll have another go when i get home from school, thanks alot!

 
Flag Post

Topic: Game Programming / Beginner needing help..!

public var enemy:Enemy;

public class Enemy extends MovieClip

 
Flag Post

Topic: Game Programming / Beginner needing help..!

addChild( enemy );

Thanks for the help by the way

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Yep i’m sure

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Sorry about that i’m kind of getting frustrated because everyone thinks i’m a dumbass because i can’t do what they can…

 
Flag Post

Topic: Game Programming / Beginner needing help..!

And draco http://gamedev.michaeljameswilliams.com/2008/09/17/avoider-game-tutorial-1/

 

Topic: Game Programming / Beginner needing help..!

This post has been removed by an administrator or moderator
 
Flag Post

Topic: Game Programming / Beginner needing help..!

And just because i’m finding flash hard doesn’t mean i’m dumb. Seriously , everyone starts off finding things hard. Give me a break..

 
Flag Post

Topic: Game Programming / Beginner needing help..!

@Draco, well it kinda does if thats the exact code he done and he could run the game just fine and I couldn’t.

And khronosis it’s C:\Users\cameron\Desktop\Camerons Flash game one\Classes\AvoiderGame.as, Line 9 1067: Implicit coercion of a value of type Class to an unrelated type flash.display:DisplayObject.

and Uzzbuzz, I typed the whole code out twice and I did it wrong…so I copy and pasted it. Also, I know basic computer skills. I can code the basics of Java, I’ve been using computers for 5 years, so don’t act like i’m a dumbass.

 
Flag Post

Topic: Game Programming / Beginner needing help..!

And if this makes you feel any better, I just copied and pasted the exact code he did and it gave me an error…

 
Flag Post

Topic: Game Programming / Beginner needing help..!

I don’t know how to indent. I have just started.. and Yes I am following a tutorial…

 
Flag Post

Topic: Game Programming / Actionscript 2 or 3?

I’m new to programming , I have flash cs5.5 and was wondering whether I should start with AS2 or AS3? I tried AS3 and asked for help because it found an error when I tried to test it and instead people were telling me to get classes before I enter the programming world. I’m only 13, and I live in a town. There are no classes and I don’t have enough money for a book. I want to know if theres a point learning AS2 and then gradually going onto AS3? Thanks.

 
Flag Post

Topic: Game Programming / Beginner needing help..!

How am I copy pasting random code… i’m following a tutorial as said in the description…

 
Flag Post

Topic: Game Programming / Beginner needing help..!

I fixed the syntax errors and managed to get autoformat and now I have this but it still says its outside the package

package
{
import flash.display.MovieClip;
public class Enemy extends MovieClip
{
public function Enemy()
{
x = 100;
y = 0;

}
public function moveDownABit():void
{
y = y + 3;
}
}

 
Flag Post

Topic: Game Programming / Beginner needing help..!

@Gamebuilder ;

Syntax errors expecting right brace

 
Flag Post

Topic: Game Programming / Beginner needing help..!

there is 6 so they are

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Should I take away the 3 curly braces above? Because I did and I still get the error and I THINK I did what you said

package {

import flash.display.MovieClip;
public class Enemy extends MovieClip {

public function Enemy()
{
x = 100;
y = 0;

public function moveDownABit():void{

}

y = y + 3;
}

 
Flag Post

Topic: Game Programming / Beginner needing help..!

So how do I get it inside the class?

 
Flag Post

Topic: Game Programming / Beginner needing help..!

I tried to test it and got this error
C:\Users\cameron\Desktop\Camerons Flash game one\Classes\Enemy.as, Line 15 1114: The public attribute can only be used inside a package.

and this is the code of the apparent error

package {

import flash.display.MovieClip;
public class Enemy extends MovieClip {

public function Enemy()
{
x = 100;
y = 0;

}
}
}
{
public function moveDownABit():void{

y = y + 3;
}

}

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Ahh I’m getting the hang of it, i’m proud of myself! ;D

 
Flag Post

Topic: Game Programming / Beginner needing help..!

Why thank you, Draco, and also Ninefivethree. Should i do that layout all the time?

 
Flag Post

Topic: Game Programming / Beginner needing help..!

So should I not worry about those extra ‘blocks’ ?