PDA

View Full Version : [help] Pongout Tutorial...Please help!



cjj
April 25th, 2006, 06:09 AM
The Pongout Tutorial on this site is fantastic.
http://www.kirupa.com/developer/actionscript/pongout.htm

It has really helped me and its very user-friendly. I actually have a clue what is going on...ha ha

But I am in great need of help, so hopefully someone will be kind enough to offer me some guidance!!

I have 2 questions regarding this pongout game:

Question 1
If I wanted to have more than 1 color block, how would I go about this? Would I need to use an array? Where could I put this in the code?

Question 2
If I wanted some blocks (for example the first row of blocks) to be solid and not disappear on contact of the ball. (sort of like a solid brick wall) How would I code this? This puzzles me quite a bit.

I really hope someone can help me. I would be sooooo grateful. :A+:

cjj
April 25th, 2006, 09:27 AM
I sorted out my First Question..I just used a OnClipEvent(load) code on the brick MC and now randomly the blocks are different colors...

But can someone please help me with question 2? I would really appreciate it!!

cjj
April 26th, 2006, 04:51 AM
I actually just figured out a way of doing different color blocks...

I made a brick wall, by applying what I learnt in the tutorial, but I seem to be having a problem now. I have created another function so that the "brick wall" blocks show up, but they don't seem to be showing up. I even did a trace and they are being read, but they are not showing up....

Is there a reason why this could be happening?

cjj
April 26th, 2006, 05:13 AM
Silly me!!:cantlook:

I just figured out why its not working, I forgot to put the Linkage details onto the MC...

So stupid....