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
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  making objects solid cielpandapie 1 3 10-18-2024, 12:17 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 8 02-23-2024, 09:44 AM
Last Post: _Aka_
  Line Renderer between two objects on a spline travellinggamedev 1 7 01-13-2024, 10:39 AM
Last Post: _Aka_

Forum Jump: