Be a Supporter!
Response to: Problem with gravity in Flash Posted November 21st, 2013 in Game Development

At 11/21/13 07:16 PM, LoveMetalNG wrote: Now i've got another problem... When I add an extra platform on stage it doesn't recognizes it as a platform. I've added the same code that worked on the rest of the platforms (changing the variables of course) but it won't work.
Help pls

This happens on "Level" 3
Sorry for double post, I forgot to mention it :I

Response to: Problem with gravity in Flash Posted November 21st, 2013 in Game Development

Now i've got another problem... When I add an extra platform on stage it doesn't recognizes it as a platform. I've added the same code that worked on the rest of the platforms (changing the variables of course) but it won't work.
Help pls

Response to: Problem with gravity in Flash Posted November 16th, 2013 in Game Development

At 11/16/13 11:37 PM, Knight52 wrote:
Reset grav to 0 when he touches the floor will do.

Thanks a lot man! It worked :D

Problem with gravity in Flash Posted November 16th, 2013 in Game Development

So, i've been following one of the tutorials that's on the wiki section of NG but i've got a problem. When the Movie Clip that's supposed to be the player touches the platform it disappears after a few seconds. You can see it Here

This is the code I used:

onClipEvent (load) {
speed = 5;
grav = 0;
}
onClipEvent (enterFrame) {
_y += grav;
grav++;
if (Key.isDown(Key.RIGHT)) {
this.play();
this._x += speed;
this._xscale = +90;
}
if (Key.isDown(Key.LEFT)) {
this._x -= speed;
this.play();
this._xscale = -90;
}
if (this.hitTest(_root.Piso)) {
this._y =+322;
}
}

Response to: Hello. I like to draw. Posted November 13th, 2013 in Art

Third one looks like it's about to break-dance or something... I like it! What about drawing a big war robot thingy? That would be awesome.

Response to: I,m new to this forum Posted November 13th, 2013 in Art

Uh.. Welcome, guess you can come back to the forum when you've got material to upload.