Hi guys,
I've just finished making this...
http://spamtheweb.com/ul/upload/210608/5 452_aitest.php
... and I'm quite pleased with it, as far as teaching myself AS goes!
I was wondering, however, if somebody could suggest the pseudo-code necessary for making the squares bounce off of one another. It's a lot simpler when you're doing something like a ball bouncing on the floor, because you're only using the one direction and angle (down > bounce up). But when you're trying to make these two bounce off each other, it's much more complicated, and I'm having a little trouble figuring it out (it's rather late, so I'm kinda too tired to get my head around it! :P) I can't figure out how to manipulate the speed of the red square from each side of the blue square whilst only using the two MC's which exist.
Let me repeat that I am asking for suggestions of the pseudo-code I could use. And I'm not repeating to be a cock, I'm repeating so I don't get anybody reading this and replying with something like "Why don't you learn AS". I am learning AS, and it's going really well! I'm simply asking for what kind of methods or techniques etc. I should be using to get the desired effect, because if I can get to grips with how I can make the bouncing work, I can code it myself.
I'd really appreciate some suggestions! :) But if I come up with something tonight I will post it here so this thread doesn't end up being a waste. Don't count on it though, lol...
Thanks :)