ForumsProgramming ForumNew Programmer

128 45483
Tookman
offline
Tookman
87 posts
Nomad

I am Tookman, a high school student that doesn't have much experience coding games, but I have experience with just general coding, can someone give me the coding to a simple game so that I can study it to understand more about game coding?

  • 128 Replies
weirdlike
offline
weirdlike
1,299 posts
Prince

open a new as3 project

Tookman
offline
Tookman
87 posts
Nomad

I did that and made a circle, but the sdk is being troublesome.

weirdlike
offline
weirdlike
1,299 posts
Prince

Is it installed? Try clicking

Tools > Install Software...

then select and install Flex SDK

Tookman
offline
Tookman
87 posts
Nomad

okay, it's so crazy, it might just work lol =)

Tookman
offline
Tookman
87 posts
Nomad

It didn't work, it just kept sending me an error message. Once again it might be my wifi

weirdlike
offline
weirdlike
1,299 posts
Prince

Well, what was the message?

Also, if you are on a laptop have you tried going hardwired until the download is complete?

Tookman
offline
Tookman
87 posts
Nomad

okay it downloaded, just had to go to a different house. The only problem is now that it says when I F8 that I need to have java runtime environment 1.7 not 1.8

weirdlike
offline
weirdlike
1,299 posts
Prince

That looks like what Hectichermit stated HERE. Also after a quick google it looks like this is a common issue. The fix is simple just re-install 1.7

Tookman
offline
Tookman
87 posts
Nomad

Okay, every thing is working okay now, but my square doesn't pop up when I click F8 or F5

Tookman
offline
Tookman
87 posts
Nomad

I think it has something to do with my flash player now.

weirdlike
offline
weirdlike
1,299 posts
Prince

I find that if you build the project it doesn't open for testing. Instead I just use Ctrl+enter to test.

You might want to also note the Output panel at the bottom, it display's information. So you can add a trace and see if it appears in the Output panel and better understand what is going on.

Tookman
offline
Tookman
87 posts
Nomad

Yeah, that's why I thought it might have to do with my flash, it says "No application is associated with the specified file for this operation"

Tookman
offline
Tookman
87 posts
Nomad

It all finally worked and I now have myself a new square

Tookman
offline
Tookman
87 posts
Nomad

Now I need a different kind of help, I want to turn my AS3 square the color yellow; ffff00

weirdlike
offline
weirdlike
1,299 posts
Prince

you can specify the color when you use beginFill

for example:

var my_square:Shape = new Shape();
my_square.graphics.beginFill(0xFFFF00,1);
my_square.graphics.drawRect(10,10,100,100);
addChild(my_square);
Showing 16-30 of 128