Search:
Type: Posts; User: Natter91
Search:
Search took 0.02 seconds.
-
I had this problem too, and I partially finished it. The solution is two if statements -- if(testVision > glide.rotation) glide.rotation += 1 and if(testVision < glide.rotation) glide.rotation -= 1. ...
-
I changed the button so that if there are lines, it removes them, and if there aren't, it creates them. I didn't have to change much. The biggest thing I changed (only had to because I forgot it...
-
I don't think you even need the variable names. When I'm making a bunch of variables like that, I store them in an array, and then all you need to reference them is in the array. What I'm talking...
-
What your problem probably is is that you are not referencing the parents of your "pil" object. Your object's parents depend on where you used addChild, if you didn't specifically name a parent. So...
-
Call this function and they will disappear.
function removeLines():void
{
var linesLength:int = lines.length;
for(var i:int = 0; i < linesLength; i++)
{
-
So there are names inside your array, but they're stored as Strings rather than movie clips. You could try storing them as movie clips, or there is a way of using a string as a reference.
I...
-
OK. I'm about 80% sure this is right.
You have your code on the main timeline, on a different layer from everything else, right? Probably no keyframes on the code layer. So the code, specifically...
-
When you say go to the next frame, do you mean the "lose" frame? I don't know if there would be a problem with referring to an mc that is on a different frame, but it is possible.
An unrelated...
-
char.dy += timeDiff * gravity is what applies gravity after you've jumped to make you fall down. I'm not sure what verticalChange is used for. Is it used anywhere else in your code? In this code...
-
movieClipA.addChild(movieClipB) instead of addChild(movieClipB).
-
Well, as you probably know, the char.dy is simply the character's y direction, which is increased when you jump so the character moves up. The gravity is used to pull the character down until they...
-
Oh. I knew it was something stupidly idiotic of me to miss. Thanks a lot!
-
Have startx and starty be equal to your player's .x and .y, then add or subtract whatever you need to have it come out where you want.
If you don't want the bullets to come out of the player's...
-
I'm working on a Tetris game. I've just started, and my general idea of how I'm making it is for a currentShape which is moving down, a nextShape which becomes the current, and an array of dead...
-
Are you sure he isn't shooting anything? I had this same problem. The reason why it moved with the player at first is because you made the bullet a child of the player, which just means that any...
-
I'm really sorry if this has been asked already. I couldn't find anything on it.
I'm using AS3 with CS4.
I was wondering what would be the best way to detect bullet collisions. The technique...
-
So the shorter one is "This is going to be an array" and the new Array() says "This is an empty array"? OK. I think I get it now.
-
I couldn't find the radio buttons that were supposed to be above the title, so I'm using ActionScript 3.0.
I'm using Rosenzweig's Game Programming University to learn AS3, and in one of his...
-
On my computer at home, the sound doesn't work on my Firefox 3, but it does work on IE 6. I just tried at my college, which has Firefox 2 and IE 7, and the sound works on both.
-
I've got Firefox 3, and I've noticed the same thing. I didn't realize it works on IE though.
|
Click Here to Expand Forum to Full Width
|