Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 Viewsthanks 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.
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
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?
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
}
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?
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
but then wont it remove all my enemys cause they all have the same name
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
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
help me plz.
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 open the window thinger
How can you give something an instance name?
O...so in games are there more scenes or frames generally
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