Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Objects
#1
Hi, I'm working on a shoot em up game and I've decided to use Curvy for enemy patterns.

I've made some progress with single enemy but I have no clue how can I make multiple objects follow a spline aligned. Can anyone give me a hint or show me the way to start ?

This is what I'm trying to do :

https://drive.google.com/file/d/0BzaUUbc...sp=sharing

 
Reply
#2
If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 
Reply
#3
(01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 

 

Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.

 
Reply
#4
Wondering if you ever figured this out?  I'm trying to do something similar and curious to know if you found a workable (and efficient) solution.  Thanks much!

(01-28-2015, 09:46 AM)LastSipahi Wrote:
(01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
 

 

Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.

 
Reply
#5
Having objects, each with a SplineController attached, using a spline is the easiest and best way to go. If SplineController is too much overhead for your particular setup, you'll need to create a custom script that uses Curvy API to get spline data and move your objects accordingly. But unless you want to animate several hundred objects simultaneous I would stick to SplineController.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Generating multiple object on changing transform jawadkhan.9026 12 696 09-06-2019, 09:39 PM
Last Post: _Aka_
Information [Quick and dirty] Shape Extrusion: interpolate between multiple Crosses _Aka_ 9 2,556 09-02-2019, 09:42 PM
Last Post: _Aka_
  Automated spline generation between objects Alexander Wieser 1 226 07-13-2019, 11:55 AM
Last Post: _Aka_
  Not all game objects on list scaling. Horibe 3 390 06-05-2019, 01:00 PM
Last Post: _Aka_

Forum Jump: