ActionScript 3.0 :: Physics Like Sonic The Hedgehog Or Fancy Pants?

Mar 24, 2010

I'm working on a 2D game that has an uneven terrain similar to sonic the hedgehog or fancy pants. I've been looking at different ways to implement the collision detection and collision reaction of the character on these uneven terrains. Basically, these terrains use curves, which makes collision reaction much more difficult to work with. My first thought was to make a grid around the terrain and then use the slope of that grid to rotate my character and give the illusion that the character is moving along with the curve. However, this isn't giving me the results that I'm looking for.

If you look at sonic the hedgehog, they were able to make sonic run on curved terrain without any issues. My question is, how can I mimic the physics in a game such as sonic the hedgehog or fancy pants.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Build A Model With Physics Incorporated Without Physics Engine?

Feb 3, 2010

I wanted to study some physics code lines related to flash actionscript 2.0.Is there anyway to build a model with physics incorporated without a physics engine? By bare actionscript?If yes, can anyone show me a tutorial or an explanation to learn somehting about it, please?

View 0 Replies

ActionScript 3.0 :: Is Basic Physics Possible Without Physics Engine

Aug 29, 2011

I know you can add a var to add grvity and velocity ect. But what are the limits of this?Can i have a ball roll downhill using physics from within flash, without a external physics engine like box 2D.Can i have impulses? Well thats not important just wondering really.What can you do with physics in flash?

View 5 Replies

ActionScript 3.0 :: Image Manipulation - To Tuck Pants Into Boots ?

Jun 9, 2011

this one seems to be too tough for me. Usually i at least know in which  direction i have to search for but this one is beyond my imagination.I  need to make kind of dress up shop where you can add clothes to a model  to see how the clothes look like. The hard part is, it should be  possible to tuck pants into boots or put one apparel over another. And  since the bottom apparel can be bigger than the top one i have to cut out the pixels around the top apparel.If  you rollover the pants on the left you see that the image is actually  bigger than the boots but is cut and curved "into the boots"And if you rollover over the "Mango top" you see that it is also much bigger than the top jacket.

tstanding but also still keep the parts that are going out of the sleeves and on the bottom.All data and images are loaded  on demand of course and there are no specified masks or tricks for that,  so looks like everything is calculated and processed ynamically.Defining  special masks for each item is not an option either because there might be hundreds of apparels and thousands of combinations.So do anyone have some ideas how to approach this ? How the heck do they do this ? How to detect the areas where one apparel goes into another and cut out the rest ?

View 7 Replies

Professional :: Turned These Pants Into A Symbol Called Pants_mc?

Jul 19, 2011

I'm having difficulties with a game that I am making. Essentially it is a drag and drop game where you dress a doll. i have my doll on the stage and I have a pair of pants that I am trying to drag and drop onto her. I have turned these pants into a symbol called pants_mc, I have also gien them an instance name of pants_mc.

[Code]...

View 1 Replies

ActionScript 3.0 :: New Fancy Cursor Can't Click

Dec 22, 2008

I have just made new cursor for my flash movie, and put this code into an actions layer:[code]Function doMenu is in another place, it works, I checked with normal cursor. But MyButton is unclickable with this new cursor.

View 13 Replies

Javascript :: Css - Fancy Animation Using CSS3?

Nov 4, 2011

I wonder if fancy animations such as this can easily be done using JavaScript and CSS. In particular, I would like to reproduce the "wind of letters" effect.

View 1 Replies

ActionScript 3.0 :: How To Create Fancy Sliding Panel

Sep 28, 2009

How to create a sliding/easing as3 panel similar to the one in the top-right corner of [URL].

View 2 Replies

ActionScript 2.0 :: Make Button Appear On The Screen In A Fancy?

Apr 19, 2005

I am looking for a tutorial on how to make button appear on the screen in a fancy way like this website [URL] click on photography or any other buttons and you will see what i mean

View 1 Replies

ActionScript 2.0 :: Fancy Menu With Seven Graphical Items?

Jul 3, 2006

I need a menu with 7 graphical items:
1 2 3 4 5 6 7

Where the item to the farthest left is largest in physical size. If someone clicks on, say, "5" in this example, 5 will scroll to the left, getting larger as it does so. As it scrolls to the left, 1,2,3 and 4 with drop off one at a time reappearing instantaneously in small size on the right of the menu. So, after someone has clicked "5" the menu will look like this:
5 6 7 1 2 3 4

View 2 Replies

IDE :: Make Fancy 3d Rotating Text With Flash?

Jun 12, 2009

is possible to make fancy 3d rotating text with Flash?

View 1 Replies

Creating Fancy Image Gallery - MouseEvent Could Not Be Loaded

Sep 22, 2009

I followed a youtube tutorial on how to create a fancy Image Gallery but when I got to run it I keep getting the following error : interface 'flash.events.MouseEvent' could not be loaded.

Code:
stop()
btn1.addEventListener(MouseEvent.CLICK,play1);
function play1(event:MouseEvent):void{
gotoAndStop("img1");
}btn2.addEventListener(MouseEvent.CLICK,play2);
[Code] .....

View 4 Replies

ActionScript 2.0 :: FANCY Flash Home Page Navigation

Jun 30, 2004

i always see some fancy/complex/elements got random motion: flash home page navigation, such as [URL] I just wondering is it very complex/hard to make one? & How can a newbi, like me get started to make one? does it involve complex/advanced actionscript?

View 1 Replies

ActionScript 2.0 :: FANCY Flash Home Page Naviga?

Jun 30, 2004

i always see some fancy/complex/elements got random motion: flash home page navigation, such asI just wondering is it very complex/hard to make one? & How can a newbi, like me get started to make one? does it involve complex/advanced actionscript?

View 1 Replies

ActionScript 2.0 :: Adding Fancy Border To Scotty's Image Gallery?

Feb 16, 2007

I'm encountering a weird glitch when I try to use a more complex image border: the image container and the text caption both jump into place at the last moment. A bad effect. All I've done is add two more variables, "w2" and "w3" to the code:

Code:
var w = container._width+spacing, h = container._height+spacing;
var w2 = container._width+space2, h2 = container._height+space2;
var w3 = container._width+space3, h3 = container._height+space3;
border.resizeMe(w, h, id);
border2.resizeMe(w2, h2, id);
border3.resizeMe(w3, h3, id);

The only way I can find to keep the border shapes in correct proportion is to create 3 different border clips and apply the "resizeMe" easing function to each of them.

View 3 Replies

ActionScript 3.0 :: Movie Clip Fancy Animations - All The Time The Movies Inside Will Play

Sep 15, 2008

Does anyone knows how something similar can be done: [URL] surface I mean the video clips, which zoom when you mouse over them, then when you click they will go forward, blurring the background. Then on close, everything will go back t the home screen. And all the time the movies inside will play.

View 2 Replies

ActionScript 3.0 :: Get Best Physics Engine?

Mar 9, 2011

I am in need for some 2D physics seen from "above and straight down". Basicly I can sum it up with a "throwing balls into walls" kinda physics.

There seem to be quite a few physic engines for as3 out there, but I wonder if anyone have anyone special to recommend regarding my particular need as well as performance of the engines.

View 9 Replies

ActionScript 2.0 :: Scripting The Physics Of A Toy Top?

May 7, 2004

I'm trying to create a simple top game. Except, the movement of toy tops isn't so simple.I've been able to get the top to trace out squashed loocking spirals. However, the motion isn't random and there's no object detection. I was thinking that some variation of a bouncing ball script might work. However, the movement would have to be confined to the appearance of a perspective plane (so that it looks like it is spinning on something flat)

View 11 Replies

ActionScript 3.0 :: Easy To Use Flash Physics

Mar 16, 2011

I want to make a game using physics in Flash, so I stumbled upon Box2D, but i find that hard to use [the basics are simple, but when i see the scripts,so i was wondering if there are easy to use flash physics engines?

View 6 Replies

Physics SDK For Flash With Realistic Model

Feb 1, 2010

There are some open SDK for Flash, that could be done. Rotating photos with physics? Examples of such programs BumTop, ePic, Coloris (no physics). The photo on the plane, it can be moved to the real physics?

View 1 Replies

Collision Detection And Bounce Physics?

Jun 15, 2011

I need help with one of my Flash projects,I'm trying to use gskinners shape based collision detection, but for some reason I cant get it to work, but im pretty new to using classes, so I dont understand the structure too much. Can i get a tutorial on how to use the gskinner class? im using the as2 version.heres the code, bare with me, there's a lot here. in all codes, mc1 is the track outline MC, and mc2 is the car

basicly im making a 2D top down version of WipEout HD Fury, so file structure is something like this (the .fla is called wipeout as3 because i was initialy coding in as3 and never changed the filename).wipeout as3.fla (the flash file containing all the MCs and animations, but only enough coding to import all of the external code files, as well as the VCam and its script)
the code is;

Code: Select all #include RaceControl.as"

the RaceControl.as is used to determine the Car's control scheme, and refers to a physics code called RaceCar.as. i found it on the interwebs, all credit to matt carpenter;

Code: Select all// Race control

// Create key listener[code]........

the Bounce Function is my own work, and is what i want to happen when a collision is detected.now, the movieclip used for the car is my own drawn design, as is the track, and i want to use GSkinner's shape based collision to detect the collisions properly. so far i have the car driving around quite happily but i need it to collide with the walls of the track, rather than drive right through them.

View 1 Replies

ActionScript 2.0 :: Realistic Car Driving Physics?

May 23, 2005

i was just wondering, how could you make realistic car driving, with regard to turning, braking, backing up etc.....

View 4 Replies

ActionScript 2.0 :: Falling Physics On Rollover

Apr 2, 2005

I need to animate little blocks to fall down when rollovered... but i want them to start falling and keep falling once mouse hittests with it... so when the mouse isn't over the clip... it keeps falling... does anyone know how i can do this? and if anyone knows some good actionscript for elastic falling with slight rotation that would be sweet....

View 5 Replies

ActionScript 3.0 :: Flash CS5 Built In Physics Discovered

Dec 27, 2010

You know how adobe promised us physics in flash?URL...If you've been wondering why they left it out, turns out they didn't.URL...

View 4 Replies

ActionScript 3.0 :: The Right Physics Engine / Collission Detection?

Apr 15, 2010

Some time ago i played this great flash game I want to create a simple level where you can walk around, just like in that game. But i was wondering what kindof physics engine or collission detection i would need if you want to walk over hills or objects where the persons reacts to

View 2 Replies

Collision Physics For Top-Down Racing Game (Flash / AS3)

Jul 28, 2010

I am trying to figure out the collision physics for a top-down racing game in Flash / AS3. I am currently using the hitTestPoint method for detecting collisions, but I don't know how to apply a decent physics method to bounce a vehicle off of a wall that it hits.

View 2 Replies

Flash :: Get A Physics Engine Like Nape Working?

Jan 9, 2011

Introduction: I think Nape is a relatively new engine so some of you may not know it. It's supposedly faster than box2d and I like that there is decent documentation. Here's the site: [URL] I'm relatively new to programming. I am decent at AS3's basic functionality, but every time I try to implement some kind of engine or framework I can't even seem to get it to work. With Nape I feel I got a little further than before but I still got stuck.

My problem: I'm using Adobe CS5, I managed to import the SWC file like described here. Next I tried to copy the source of one of the demo's like this one and get it to work but I keep getting errors. I made a new class file, copied the demo source to it, and tried to add it to the stage. My stage code basically looks like this:

[Code]...

View 1 Replies

Flash Bone Tool - Add Gravity/physics?

Oct 8, 2011

I've made a character, and used the bone tool to make it move in runtime.This works fine, but now I want to add gravity/physics, so I can throw my character and it lands on the ground like a real ragdoll. How do I do this in actionscript 3 ? And is it possible to do this within the fla (no class file).

View 1 Replies

ActionScript 3.0 :: Splat Animation Effect With Physics?

Aug 28, 2011

I have been trying to see how this splat effect animation from some sort of "paintball game" works. I think this is using an open-source APE(Actionscript Physics Engine).Actually, I guess it's the one from cove.orgAs I cannot post links yet I'll tell you where it is.If you don't feel like wanting to look for it,I can PM you with the link to it.Write this in the google bar : "Minijuegos"+"Battle Paint" // that is the name of the game.There is a class named "Floor" which is used in the menu of the game, where random splat shots start appearing in the background. I am trying to figure out how it works.This is the class code: I think everythig related to the splats is in there, but still don't see which functions make the whole animation.

The key must be in functions: generateSplatter","createSplotch","generateSplotch","generateSplatterHd","addSplatterHd","addColor"(I think this function adds color to the splatters, which is not so important right now) and that's all with the functions.There is an array, ThePaintSplatArray( must be an array containing a lot of particles, which are bitmaps of small circles i guess)I'm not used to working with AS.That's why I'm doing a deep analysis of the code to understand the way it works.he code was way too long to put it here. SO I zipped it up. YOu will found the floor and particle(what makes the physics stuff work) .as files.

View 0 Replies

ActionScript 3.0 :: Flash Speed Of Collision (physics)?

Jul 29, 2010

I have the values (x, y, xSpeed, ySpeed) of the movieclips (Hero and Badguy)Now, when they collide, how will i calculate how hard the collision is?Obviously weight, acceleration, etc. are out of the question, as it just needs to be based on their speeds.

View 4 Replies







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