Actionscript 2.0 flash game creation tutorial. Woop. (Part 2)
Uploader Comments (roojames)
All Comments (35)
-
@ollielegend14 Uhm, I'm not sure if you have fixed that problem a long time ago, or if you don't learn actionscript anymore.
But this code worked fine for me, so it's not the code that's wrong. Maybe you have the wrong instance name, or the code is not where it is supposed to be (in a frame or something) :)
-
@ollielegend14 or maybe the objects are in different layers when making the Hit Test? I don't know if that matters! :)
-
@roojames i checked the properties menu with my character, and it still says that the name is 'faic'.
no worries :)
-
спасибо! tnx 4 video! very good job, but I make maby something wrong,coz my woll dont stop the character :(((
p.s. извините если написала с ошибками
-
Woo lol
Excellent tut.
-
@doom99999333 I taught myself actionscript and I am now a competent coder. You're advice reflects how I code now, sure, but I started using if statements and applying code to seperate objects so I could remember what applied to what. I try and reflect my own personal learning of actionscript in these tutorials in the hopes that if these people learn how I learned in as close to exactly the way I did as possible, they will become as good as me as quickly as I did.
-
I watch all your tutorials man, and u are a great help but i have a couple of things which i am probably just doing wrong but 1. when i make a wall my character doesn't go through it, but he pushes it along the ground and i can't figure out y? 2. I still for the life of me cannot get the VCam to follow my character, it doesnt move at all... please help somebody
PS. I watched your animated character tutorial so i used the code for movement from that vid if that helps any?
-
why use an if statement and why on the wall, thats just messy, use a while loop to do more acurate hittest e.g. while(wall.hitTest(face)){ face._x ++}
this is massively better and means if u change your speed then it don't matter, if ur speed was 5 it would vibrate but not if u used a while loop. still, it took me six years to learn all this crap, i just think if your going to teach u best do it right the first time
-
@roojames :)
-
@T3kB0i8P That's ok man, I'm glad we could resolve this before it turned into one of those horrible online arguments. Nobody wins in those. I'm sorry for overreacting too, now that I know you're a reasonable person. Lets forget about all this now. Also, thanks for the praise!
-
@roojames well i am deeply sorry that i have upset you in such a way. I only meant to point it out and it has been misinterpretted, and i very much regret this fact. I too make tutorials and i have had some mean things posted on my vids and i know how this feels and again i am sorry that i have upset or offended you.
p.s. your vid was very good, it taught me quite a lot. :)
-
@T3kB0i8P It's not THAT you pointed out a spelling mistake. It's the way you did it. These videos, believe it or not, take a long time to do, funded only on good intentions. I make them only for the good of the public, so that I might try and teach those who feel cheated by overcomplicated tutorials. Therefore for somebody to abuse the comment space by posting a comment which is not only non-constructive criticism, but regards my intentional comic relief as a 'FAIL' genuinely upsets me.
-
@T3kB0i8P Now, if this were a respectful pointing out of incorrect grammar, I would kindly tell you that spelling it 'Faic' is an in-joke for avid members of the Newgrounds community. Unfortunately, seeing as you didn't factor in the possibility of me spelling it that way intentionally, and as such decided to be a cunt about it.
-
@roojames could you make a tutorial where if you were moving an object with the arrow keys, you could activate a button by going over it without the mouse but with the object you were moving?
my character doesnt seem to even make contact with the wall, he moves properlly in every direction, but its like the wall doesnt even exist..
onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += 10; }
}
^ my code for moving right. the wall is on the right, but im not sure what ive dont wrong.
onClipEvent (enterFrame) { if(this.hitTest(_root.faic)){ _root.faic._x -= 10; }
}
^ coding for the wall (right) can you help?
thanks for the vid btw, very useful :)
ollielegend14 1 year ago
@ollielegend14 Can you please be more specific? What is your character's instance name (I don't mean the name you put in when you create a symbol), does this code output any errors when you play it etc etc. The code itself looks fine, but I think this may be an instance name issue -- as in this code only works if your characters IN (check the properties bar after selecting the character) is 'faic'.
Oh and thanks for the praise!
roojames 1 year ago
RRRRgggggggggg my guy goes through the wall can you please help me, heres my code
onClipEvent (enterFrame) { if (this.hitTest(_root.hero)) { _root.hero._x -= 10; }
}
CodyT95 1 year ago
@CodyT95 Please be more specific. Which side is the wall on? Is your character's instance name (different to the name you give when you create a symbol) 'hero' with no capitals?
roojames 1 year ago
i have a problem, when my guy touches the wall, he actually gets faster and flies off the edge of the screen.
pudinthemushroomhead 1 year ago
@pudinthemushroomhead Probably to do with whether the wall's code is a minus or a plus. If he's going left and you want him to stop, the code should contain a minus, and if he's going right and you want him to stop it's a plus. Remember, when you stop the character, you're actually just moving him in one direction at the exact same speed he's trying to move in another, thus neutralising the movement and making him stop.
roojames 1 year ago