Be a Supporter!
Response to: definitions of terms in actionscrip Posted February 19th, 2008 in Game Development

thanks a lot. The one in flash does help, and i cant believe i never noticed it


what does vel mean? What does var mean?
I am trying to learn actionscript. I know basics, but i dont get the exact definition of all of them. is there some site that explains it all in a dictionary format? Or which guides to learning it are the best? I looked in the new section but nothing seems ot reach everything.

Response to: Could somebody explain this segment Posted February 18th, 2008 in Game Development

but then what does vel mean? I did read the new to flash forum...this is where i got this code from without that much explanation

Response to: Most Useful and Priciest Microphone Posted February 18th, 2008 in Game Development

what about those already built into computers?


onClipEvent (load) {
moveSpeed = 10;}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed; }
else if (Key.isDown(Key.UP)) {
this._y -= 0; }
else if (Key.isDown(Key.DOWN) && !fall) {
this._y += 0; }
else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed; }}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y = 36; jumping = true; }
if (jumping == true) {
vel_y -= 2; if (vel_y<=-15) {
vel_y = -15; }
this._y -= vel_y; }
if (_root.ground.hitTest(this._x, this._y+35, true)) {
vel_y = 0; jumping = false; }}
onClipEvent (enterFrame) {
this._y += 16; if (_root.ground.hitTest(this._x, this._y+1, true)) {
this._y -= 16; }}

I organized it...

What i dont understnad is the part about falling and jumping(mainly the second part) Can you just put "&& !fall" to make the object fall? What does it mean? Why isnt it there in the actionscript list(How do you type it in? What does vel mean? What does it mean by && !jumping? Does that mean that its jumping?

Thanks in advance!


onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed; } else if (Key.isDown(Key.UP)) { this._y -= 0; } else if (Key.isDown(Key.DOWN) && !fall) { this._y += 0; } else if (Key.isDown(Key.LEFT)) { this._x -= moveSpeed; }}onClipEvent (enterFrame) { if (Key.isDown(Key.SPACE) && !jumping) { vel_y = 36; jumping = true; } if (jumping == true) { vel_y -= 2; if (vel_y<=-15) { vel_y = -15; } this._y -= vel_y; } if (_root.ground.hitTest(this._x, this._y+35, true)) { vel_y = 0; jumping = false; }}onClipEvent (enterFrame) { this._y += 16; if (_root.ground.hitTest(this._x, this._y+1, true)) { this._y -= 16; }}

When i put this code into my actionscript, it doesnt work. The symbol moves towards the bottom of the screen on its own accord. How can i fix this? Is something wrong with flash?

Response to: flash help? How to jump? Posted February 18th, 2008 in Game Development

can you please give me a code? I saw this on the site

if (Key.isDown(Key.UP) && !jumping) {

jumping = true;

}
if (jumping) {

this.gotoAndStop("jump");
this._y -= jump;
jump -= .5;
if (jump<0) {

falling = true;

}
if (jump<-15) {

jump = -15;

}

but on actionscript, there is no keyword for jumping. I am confused. I just want to be able to do a simple jump
}

flash help? How to jump? Posted February 18th, 2008 in Game Development

I looked all over google and i found one script that had a bunch of other stuff in it. I know how to move around characters with arrow keys, but how can i make then go in a jumping pattern?

Help!!! Posted November 24th, 2007 in Game Development

Whats messed about my actionscript

this.onEnterFrame = function()
{
if (Key.isDown(Key.RIGHT))
{
Ship._x += 10;
} else if (Key.isDown(Key.LEFT))
{
Ship._x -= 10;
} else if (Key.isDown(Key.UP))
{
Ship._y -= 10;
} else if (Key.isDown(Key.DOWN))
{
Ship._y += 10;
}
}
The character just moves up and down continuously

Response to: Please help me with flash Posted November 24th, 2007 in Game Development

but then wont it remove all my enemys cause they all have the same name

Response to: Looking To Create An Animation Team Posted November 24th, 2007 in Game Development

im sorry, but i cant completely agree with you. The names are nice, but your summary wasnt all that clear. Please specify what jobs are needed to be done and i may be able to help. Feel free to send me a PM

Response to: Please help me with flash Posted November 24th, 2007 in Game Development

help plzzz

Please help me with flash Posted November 24th, 2007 in Game Development

I am making a game where one is flying and is trying to get stuff. How do i make it collect things and add it onto the score?. When i test the game for example, it just passes over it, rather than making it disappear

Response to: How do you make an enemy...? Posted November 24th, 2007 in Game Development

help me plz.

How do you make an enemy...? Posted November 24th, 2007 in Game Development

How do you make an enemy interact with the main character. like...when the main character hits the enemy, how can i make it go back to frame 1. And also, how do you make the main character shoot bullets

How do you name an instance Posted November 23rd, 2007 in Game Development

How do you open the window thinger

Response to: Is a frame the same thing as a scen Posted November 23rd, 2007 in Game Development

How can you give something an instance name?

Response to: Is a frame the same thing as a scen Posted November 23rd, 2007 in Game Development

O...so in games are there more scenes or frames generally

Response to: Is a frame the same thing as a scen Posted November 23rd, 2007 in Game Development

huh? OK in this tutorial, http://www.newgrounds.com/portal/view/24 7180, it sayss "Then on frame 3, type in the words you win" How can i just make the words You win come on freame 3, but nothing else. When i do that, it deletes everything in frame 1/2 help!!


Title says it all. Whats the difference. How can you make something be in one scene, but not in the next. Im trying to make a game