Actionscript 2.0 :: Platformer With Ground And Water?

Aug 21, 2010

i'm currently making a flash game which has ground and water.And its going to be big.For someone whos 13 like me i have problems.The script was edited recently so sorry to anyone who was working on it.the issues are underlined.here the script.

onClipEvent (load) {
grav = 2;
speed = 15;

[code].....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Slope Detection In Platformer

Jun 15, 2010

I have an art based platformer with a movie clip that is basically a triangle shaped object that serves as the slope.My problem is in the collision detection with the slope. Here's the code that i currently have - [code]This basically places the rectangle shape that serves as the main player (_rec) along the slope and increments its y position based on it's current x position. The reg point of the slope is on the bottom left.The problem is that this code comes into effect even if _rec is jumping over the triangle because of the square shaped hitbox of the slope. Also, for the same reason, I cannot jump while on the slope itself.I know of a way to rotate the character based on the incline in the ground but I don't really like that idea. The character should stay vertical at all times. I really don't want to do a tile based version as I have a lot of art already designed, it's only the ground objects that are basic shapes.

View 1 Replies

ActionScript 3.0 :: Make Coins For A Platformer?

Apr 11, 2011

how to make coins for a platformer, the video however did not show how to keep count of the coins you collect....I've tried a million things but nothing seems to work! Here is a link to the video http:[url]....what I have to do to keep track (score) of how many coins I pick up,

View 7 Replies

ActionScript 2.0 :: Flash MX Platformer Game?

Nov 3, 2011

I'm in the process of building a platformer with Flash MX using Action Script 2.0, I'm following this tutorial: [URL].. However I'm not following the tutorial, I downloaded the .fla file and followed that. The .fla file available for download functions, but my recreation does not.

I have used all the elements from the tutorial platformer, the scoring counter, the health counter, the pickups, the enemies etc. But it does not work properly.

Here is my attempt for download, can someone please explain where i've gone wrong, and if it's not too much trouble, fix it.

View 1 Replies

ActionScript 3.0 :: Keep The Player On The Ground?

Sep 14, 2011

I have made racing games in the past, but never a side scrolling type.Im trying to make one similar to this: http:[url]...But how would you keep the player on the ground? well not stuck to the ground because we would want the player to be able to use things like ramps.

View 5 Replies

ActionScript 2.0 :: Making A Ground?

Oct 14, 2008

im making a 2d game with platforms and walls and floors and such, i've got most of the physics i need. gravity, speed, ect. But when he is supposed to stop after "hitting the ground he just goes straight thru. The ground he should stop at is a mc called bg and inside is a mc called platform. what am i doing wrong?

Code:
onClipEvent(enterFrame){
//Keeps Character from going thru the floor, roof & walls
if(this.hitTest(_root.bg.platform)==true
gravity = 0;
}

View 4 Replies

ActionScript 3.0 :: Platformer (Collision Between Player And Terrain)

Nov 6, 2010

I'm doing a project at the moment where I am creating a side scrolling platformer in AS3. Currently I have:

-The "Character' which is a ball that can be controlled using the arrow keys and has bounce, friction, gravity etc.
-A scrolling system, the character can move freely within an invisible inner boundary, once the character leaves this boundary the background will scroll to compensate.

The thing I am having issues with is creating collision detection between the "Character" and the "Background.Ground" so that the character can move along the shape of the Ground movieclip within the background movieclip.

Actionscript Code:
package{
import flash.display.Sprite;
import flash.events.Event;
import flash.display.MovieClip;
import flash.display.Stage;
import flash.geom.Transform;
import flash.events.KeyboardEvent;
[Code] .....

View 21 Replies

ActionScript 3.0 :: Create A Simple Platformer Game?

Dec 12, 2009

I want to create a platformer game, but there is no tutorials that actually tell you how.What I dont understand is:

- How the level changes when you get to a certain point
- How to do collision with walls
- How to make the player move

View 5 Replies

ActionScript 2.0 :: Maximum Jump Height For Platformer?

Jul 6, 2008

I am making my second game, and it's going to be a platformer. Unfortunately, I have no idea how to make the character (named hero) jump only to a certain height, and then fall back down. someone, please post a way to do this!

View 1 Replies

ActionScript 2.0 :: Background Scrolling For Platformer Game?

Nov 30, 2009

I'm making a simple side scrolling platform game called Kit Run. For moving left and right, I have the sprite run in place while the background scrolls in the opposite direction. However, when the sprite jumps straight up and down, the background stays stationary. What I need help with is getting the background to scroll down when the sprite moves up beyond a certain point, and up when the sprite moves down beyond a certain point. Ive tried several probably unnecessarily complicated methods that only sort of work.

View 4 Replies

ActionScript 3.0 :: Create A Scrolling Platformer Game?

Aug 10, 2010

I'm about to create a scrolling platformer game, something like Gum Drop Hop, where the background is scrolling constantly, and you have to keep running or else you'll die. Do you know any tutorials on how to do something like this? I'm not really sure how I would generate random platforms all the time...

View 5 Replies

ActionScript 3.0 :: Platformer - Moving Character And Loading Levels

Jan 28, 2012

I am currently working on a platformer using accelerometer to move the character and xml to load levels as so..
[as]
level.x += (e.accelerationX*40);
if (e.accelerationX > 5) {
e.accelerationX = 5;
} if (e.accelerationX * 40 < 3 && e.accelerationX * 40 > -3) {
player.gotoAndStop(1);
[Code] .....
And it is all added into one movieclip called level. My problem is when the character hits under a platform it will go up it which I don't want it too, I don't know how to fix it heres the gravity code.

View 11 Replies

ActionScript 2.0 :: Platformer - Character Clips Landing From Jump

May 25, 2011

I'm trying to make a platformer and I'm having a problem where the character will clip half through the ground upon landing from a jump. Just so you have a clear picture -- right now all that's on the stage is the character (which the code is placed in) and the ground (a completely flat plane called 'ground')

Here's the code:
onClipEvent(load) {
jumpHeight =0;
defaultJumpSpeed = 20;
jumpSpeed = 20;
} onClipEvent(enterFrame) {
[Code] .....

Right now the character's jump constantly decreases to give the effect of gravity. It starts out positive (character moves up), then goes negative (character falls down) The character will only stop falling if they come in contact with the ground (in the form of a hit test). The problem (I think) is that the character can fall at, say, 36 pixels a second or more, so sometimes they'll be half through the ground before the hit test goes off and stops him from falling further. How do I stop it without making the character fall-rate really, really low.

View 2 Replies

ActionScript 3.0 :: Reference Ground MovieClip Through Out Game?

Nov 2, 2011

I have three movieclips in my library (Ground1, Ground2, Ground3). Depending on the game level I want to use a different one but I reference the ground movieclip through out the game. How can I declare the variable (i.e.
var ground:Ground1

So I can set ground to a different library clip like this:
if(level == 1){
ground = new Ground1();
} if(level == 2){
ground = new Ground2();
} if(level == 3){
ground = new Ground1();
} ground.scaleX = 10;
ground.scaleY = 10;
worldSprite.addChild(ground);

View 1 Replies

ActionScript 2.0 :: Multiple Collision Detection Code For A Platformer Game

Dec 15, 2002

I'm having a problem with my multiple collision detection code for a platformer game.. It checks for collisions on all objects separately and it checks only one object per frame. I need to make somekind of a loop so that it would check every object in one frame. Anyone got an idea? It's coded like this:

[Code]...

View 4 Replies

ActionScript 3.0 :: Platform Game Fall To Ground Function?

Feb 16, 2010

I have gotten to a point with my platform game where I am completely stuck. I have the player movement working fine but the only thing is, it doesn't fall off the blocks.

I have a Floor class which references the Character class and tells it to stop jumping when it is on a block through a hitTestObject. I have tried to research how other games have added functions but can't seem to find one which will work in mine.

View 1 Replies

ActionScript 3.0 :: Flash Multiple Ground Instances Using Arrays

Feb 26, 2011

I'm working on a game engine with a friend of mine, we plan to make it open source so other people can use it too for their own games. We basically have everything done, but I really want to add multiple ground instance support. I would like to use an Array, to call upon all ground layers on the stage, and put it into one call name for my gravity function. So I wouldn't have to have various strings for each ground instance.

Code:
var groundArray:Array = [ground, ground2, ground3];
var groundtile:MovieClip = groundArray[1];
addChild(groundtile);
This is my gravity..
[Code] .....

What I have so far works perfect without arrays.. When I add my above array, I don't get any errors.. but I fall through the ground.

View 2 Replies

ActionScript 3.0 :: Static Objects In 3D Space Move On Ground?

May 3, 2011

I am using away3D and I have come across a stumbling block I cant get anyone to answer. I have tried EVERYTHING and I am not getting an answer on away3D forums.I place objects in 3D space. where the houses start at different y -value and z -value for reasons I dont know so they can look level.IT takes about 30 sec to load but here is my example of the problem . The objects move on the ground when they should not. I am just moving the camera. I dont underatnd how you place objects in 3D space in away3D.Here is the issue with my program after MANY hours of endless fiddling. The y value of the plane. It looks the same with value at -100 or -140 but it works at -140 where it is under all ojects. AT -100 it looks under all objects but doesnt move properly. Objects and the plane (ground) dont seem fixed.

// plane = new Plane({material:mygrass, name:"plane", z: 200,y:-100,x:-100, width:1000, height:1000, pushback:true});
plane = new Plane({material:mygrass, name:"plane", z: 200,y:-140,x:-100, width:1000,

[code]......

View 5 Replies

ActionScript 3.0 :: Flying Object Leave Glitter Behind That Floats To Ground

Oct 21, 2010

I've got an object flying through the air, but I want it so that the object leaves a trail of glitter behind itself and that glitter floats to the ground. What would be the best way to do this?

View 2 Replies

ActionScript 3.0 :: Buttons To Fall And Bounce To The Ground Like A 'bouncing Ball'?

Feb 24, 2012

So in my level 1, here's what I wanted it to look like:on enter frame, a few of my "drag-gable" buttons are going to fall to the ground, bounce a little bit and stop when they ran out of speed.Attached the file that I've already scripted the drag n drop on each button, now how do i script the "fall to the ground part"?

View 0 Replies

ActionScript 3.0 :: Curved Surfaces - Find The Utmost Y Point Of The Ground At A Given X?

Oct 30, 2009

So I have a ground that's supposed to be, for the most part, curved. How can I find the utmost y point of the ground at a given x? The ground looks like so: The function I have right now sort-of works, but seems very inefficient. You input an x parameter, and the function loops using hitTestPoint with a constant x and a y that increases until it hits the ground. Then it returns that y value. Is there a better way to do this? This method seems like it would get slow.

View 4 Replies

ActionScript 2.0 :: Make A Game - Mc Doesnt Fall Through The Ground When He Jumps Or Walks?

Jun 25, 2005

Well, basically i need to make my game so my mc doesnt fall through the ground when he jumps or walks, coz so far all he does is jump, then fall through the floor.

View 3 Replies

IDE :: Water Fluid Effect?

Jun 19, 2009

I'm a bit stuck looking for a tutorial for a water effect I'm trying to create. Has anyone made a simple random fluid water-effect in Flash, to be applied to one background image?

There's plenty of ripples and rain drops - but my image is taken from within the water, and it would be great to get some animation in there!

View 6 Replies

Water Ripple Effect On Mousedown

Aug 5, 2009

i am working on a project in which i want to have the water ripple effect when i click the mouse where ever on the stage. so here is the problem i have created a file which produces the water ripple effect all across the stage randomly by using "flash.filters.DisplacementMapFilter " when playing the movie i want the ripples to appear on mouse down state and only one ripple not multiple ripples and exactly at the place where i click. now what i have done is i have put all the script i have in " mouseListener.onMouseDown = function() { " but what happens is the ripples appear when i click but not the whole movie clip for ripple is played its like i have to click fast after each other for the ripple to be continuous and full.what should i do?

View 1 Replies

ActionScript 3.0 :: How To Make A Water Reflection

Dec 4, 2010

I have a picture that I want it to look like its sitting in the water how can I do this I have no clue is there water reflection effects in AS3 Flash?If there is can I have an example?

View 1 Replies

ActionScript 2.0 :: Vibrating Water Effect?

Sep 9, 2003

how the animation for this flash image was created?

View 11 Replies

ActionScript 2.0 :: Image Effect (like Water)?

Dec 21, 2004

Does anyone know how to do this?: http:[url]...

View 1 Replies

Professional :: Water Drops Effect With Textbox?

Feb 9, 2010

i want to make flash file in which, when i click anywhere one water kind drop come from top to down and when it reach bottom it distribute in so many parts.after this one textbox will display and i am able to enter some text in that textbox.

View 3 Replies

Create Water Ripple Effect With Mouse?

Mar 15, 2010

I have tried for weeks and am wanting to create a water ripple effect when mousing over an image on my website. I have downloaded various files, but to no avail. Can someone assist me please, with where I can go to download an extension to allow me to do this? I am using Flash CS4.

View 2 Replies

Flash Actionscript Dynamic Water Ripple

May 14, 2011

I was wondering if/how I can use this effect url..., or similar in Flash but instead of having the ripples follow the mouse, follow movie clips. I have a boat MC that I want to simulate moving through water.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved