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
Similar Posts:
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
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
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
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
Nov 19, 2009
I have my player, I have my enemy, and I want to make it so that when I hit "A", the player attacks and if its close enough to the enemy, the enemy dies.I've found how to do this in AS2, but not AS3.
View 4 Replies
Mar 28, 2012
im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:
Code:
package {
import flash.display.MovieClip;
public class TamagotchiGame extends MovieClip {
[code]....
I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.
View 2 Replies
Jan 21, 2009
I'm trying to make a game where the character stays in the middle of the screen and the background scrolls as the arrow keys are pressed.
I've got it moving fine, but the background scrolls off the stage when you reach the edge. The background's bigger than the stage. I want to stop the background moving before this happens.
View 14 Replies
Jul 28, 2011
I'm making a top-view side-scrolling racing game in Flash AS3. I'm unsure about the best way to store levels in the game.Please provide suggestions for both tile-based and art-based backgrounds.
View 2 Replies
Aug 2, 2010
I'm trying to put a Tween in here so it's less 'rude' when I roll over the bottom bar (interface).See the swf here:(Press Start, then one of the windows)Script:
Code:
private function scrollMovement ( event:Event ):void
{
[code].....
View 6 Replies
Mar 27, 2011
I was just wondering what the best data structure would be to use to represent data objects in a side scrolling game, basically the stuff the user can't see isn't on the stage so I would generally create a custom class to define its properties (x,y,weight,type, derp, etc) and then push that into an array and as the user moves forward I project the info from the array while checking if their x position is.
The problem that can occur is that the user can move left and right so whats the best way to keep track of the indexes?
View 2 Replies
Feb 28, 2012
My goal: To create a side-scrolling motocross game (horizontal - already have terms on side scrolling methodology).The bike - should react to jumps, etc.Wheels need to turn when gas is pressed, etc (is this a basic animation on keyboard events, or is it actually what 'drives' the machine??)The rider - should hang on to bike, lean forward, backward, etc.My question lies within where should be the best place to start? I know this isn't going to happen over night, and my primary focus is on the bike & suspension & rider physics (making sure the suspension/bike/rider react correctly to bumps).URL...
View 2 Replies
May 3, 2007
I'm making a top-view side-scrolling racing game in Flash AS3. I'm unsure about the best way to store levels in the game.
View 1 Replies
Feb 13, 2010
This is my reference dress-up game website. [URL]. How to make the scrolling button and drag out the clothes inside the scrolling bar location? (Is it need to use the actionscripts 3.0 or 2.0,which coding should I write)?
View 2 Replies
Nov 15, 2011
As you may have seen from my previous posts, I am creating a side-scrolling action game in Flash/Actionscript 3.0. Right now I am trying to get enemy objects to face the player's direction. Here is what I mean (dartD1 is an instance of the enemy character object. If its scaleX is 1, it's facing right; if its scaleX is -1, it's facing left):
[Code]...
View 2 Replies
May 20, 2011
how to respond when a rectangle hits another rectangle? I already know how to detect the collision, I just don't know how to respond to it. I'm just trying making a simple side-scrolling platform game where I have platforms I can walk on and bump against on all sides.
View 9 Replies
Jul 29, 2004
hey everyone. im currently making a side scrolling game and its going good. especialy thanx to sum people from here. anyway. i was trying to make it so that u could enter vehicles and then control the vehicles and shoot with them and then u could exit them. Im not asking you to write the code for me. but if u guys know of any examples/tuorials, or if u could giv me sum ideas on how i could do this.
View 1 Replies
Oct 22, 2011
I am in the process of creating a vertical scrolling space shooter game for deployment on mobile platforms using AIR.I've used some excellent tutorials online, video tutorials on Lynda and several books, including Game Programming University.Something they all seem to gloss over are the various screens that will be used.
For instance, my game right now will use a splash screen, a main menu screen, a credits screen,a settings screen, a difficulties screen, an instruction screen, an end game screen and save/load screen...and a play game screen, where the actual game will be played.I've created the screens as seperate frames in the main timeline with stop commands in between and code on each page (I know... bad!... but easy).So basically,they can navigate through the menus using buttons (mouseclicks, which will work with touchs as well) and when they are How do I pass data between them? I was thinking of storing it in shared object.
View 1 Replies
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
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
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
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
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
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
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
Jan 13, 2009
I need to learn how to create scrolling text. I�ve looked around on the web but I can�t seem to find a good tutorial on it. The text does not need to be dynamic, I must be able to choose different fonts and colors for the text, and most importantly create a custom scrolling bar.
View 2 Replies
Sep 30, 2009
[URL].. Can anyone lead me in the right direction to create an icon scrolling menu like at the bottom on this webpage. scroll with the right and left arrows and click the images for links.
Is there code available or a product to purchase?
View 2 Replies
Oct 7, 2009
I'm looking for tutorials to create a scrolling timeline similar to the link below
[URL]
View 2 Replies
Oct 12, 2009
I need to create a Flash banner. Fairly straight-forward in terms of looks - a long list of services that scrolls from right to left and then loops continuously.
I'm using Flash MX 2004. So far I've created the text - it comes on from the right and leaves on the left. The problem I've got however is how to make this a continuous, seamless loop. When it goes off on the left I can't figure out how to make it come back on from the right.
View 1 Replies
May 17, 2010
I would like to create a scrolling effect on one of my MovieClips. In Javascript I'd simply create two divs, one positioned absolutely in the other, and have the surrounding one have the style 'overflow: none'. Now I want to achieve the same in ActionScript, as shown in the following picture:
When I try to set the size of the surrounding MovieClip the contents just get 'squashed'. I want it to stay the same and the parts outside of the 'rectangle to be hidden outside of the MovieClip.
View 1 Replies