Best way to create lots of tracks for actor to move along?
GreenfroggGames
Member Posts: 224
What would be the best way to create lots of specific tracks on a scene? I'm gonna spawn a ball that moves along different tracks that I lay out on my scene.
Comments
@Socks Is it possible to achieve this movement for a ball actor using sin and cos? If so, how do I do? I've tried using tables for x and y coordinates and move to behavior but it's to choppy, I need a smoother movement.
Well ! The shape on the far right may or may not be able to be described using a sine function, but there's no real way of knowing, do you want that specific shape or just a general random-ish path ?
The shape on the left is just moving up with a periodic rotation, so something like . . .
Move 90° @ speed 50
Every X seconds
--change self rotation to 0
--Interpolate self rotation to 360°, 4 seconds / ease in/out.
I've got a bunch of old experiment tracing out interesting paths that might be useful, let me dig them out . . . . back in a moment . . .
@Socks I want it to be "random-ish" with & without loops.
Awesome:)
Mmmmm . . . can't seem to find them, I had a whole folder of stuff, found a couple of files though, might not be right for what you need . . .
@Socks I'll have a look when I get home, Thanks!
Some more old meandering path files, might be useful:
Link: https://www.mediafire.com/?p920m99b6pz2v9q
Includes such classics as . . .
Broken Steering Wheel
Curley Wurley
Curved grid
Dancing Bees
Doughnuts
Etch-a-sketch
Lost Ant
Nodules
Occasional Bump
Perm Machine
Rising
Smooth lumps
Spaghetti
Sudden Turn
Wobbly Signature
Zig-Zag
Great
@Socks All these demos are great but is it possible to have the main actor "motherfuckingfly" rotating itself and still moving in those patterns?
I don't know what that means.
@Socks I want the actor to spin while still moving in circles and different directions like in your templates
//
@Socks Sorry, don't really know how to explain but let me try again. I want the actor to move like a snake for example and while it moves like a snake the actor is also rotating at a costant speed.
Constrain your spinning actor to the moving actor.
@Socks Yeah, that might be the best thing to do. Thanks
Well, that's one way to describe it. :P
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Braydon_SFX Haha, it's the name of the main actor in the templates.