|
|
|||||
Topic, Path System | ||||||
| ||||||
You must register or log in to post a message.Btw, for the FlashDevelop community, Gecko tells me you dont have access to the fl (Flex) library, And unfortunately this uses the fl.Tween, Will this be an issue? Yes, I found one property of the Bézier curve path settings in BL games. :) Hexicube, no, but I have a better idea of what id nee to do to make it work, would still require a lot of effort & thought, 1. You joined the site in the worst way possible, "spamming" games, setting your age to 19 etc. 2. You are constantly offtopic or spamming (What does wooden swords have to do with paths? Why would you yell about creepers in a Terraria topic, full-caps and everything?) 3. You have permanently hurt your reputation 4. You provide little-to-nothing to the website (it's not like I do...) No just no. We're aloud to talk about what we want, you dont even have anything decent to say on this forum so why should you even care? If you dont like it, you can piss off. Besides, we werent even talking about the colour! Go away & rethink a few basic principles. and did the pic help? @ Jasper. Die in am offtopic hole. maybe this will help [edit] by biezer I mean the ones in JPs games, not the ones where it doesnt give a proper curve and 9001% of the line is at the anchor... | Flash game developmentFirst post of the topicExample: Example.as How it works: First you'll need an Array of 'blNode's which have a value of x,y & speed, these are the node locations, Then you'll need a 'blPath', this does the real stuff, this take in your array of nodes, an array of targets (which objects to move), a 'Global Speed' value, & a directioning Boolean (if set to true, the objects will point towards the next node). Once you've created these, then you'll need your own Enter_frame event to make it actually Go... blNodes properties & functions (blNode extends Point): blNode.x:Number blNode.y:Number blNode.speed:uint (0 to 200) blNode.setToPoint(newLocation:Point) blNode.toString():String blPath properties & functions: blPath.nodes:Array blPath.targets:Array blPath.globalSpeed:uint blPath.directiong:Boolean blPath.update() blPath.reverse() blPath.realSpeed() (gets the actual speed of the path, effected by node Speeds) blPath.toString():String blRect (creates 4 blNodes from a rectangle) properties & functions: blRect.setSpeed (nodeToChange:uint, new_Speed:Number) blRect.setGlobalSpeed ( new_GlobalSpeed:Number) (sets all node speeds to the new global speed) blRect.setRectangle (rectangle:Rectangle) blRect.getNodes ():Array blRect.toString ():String Next Update - Circular paths - more suggestions welcome |