PDA

View Full Version : Emit in a random spot within an area?



n00neimp0rtant
11-07-2012, 10:32 PM
(I'm actually making this level in LBPV, but I figure this board is probably more active.)

I'm working on a game somewhat similar to Snake: "collect the good things, stay away from the bad things." (If you have ever played Squarez on PSP, I'm making a Vita clone of it in LBP) I need help making 2 emitters that will emit the good and bad objects, but they must drop in random locations within a specific rectangular area. What would be the best solution to go about this? Thanks in advance.

Lady_Luck__777
11-07-2012, 11:39 PM
Moved to [LBPV] Help

ChrisF2112
11-08-2012, 03:43 AM
Hmm... tough one. I don't think there are any ways to emit an object straight out of an emitter in a random location, so you'll need to either have several emitters or make the emitter move around randomly. Of the two, I think the multiple emitter option is probably easier, although either would probably be fine. So, either have your emitters flit around the play area emitting the things you'd like or have a randomizer that selects one of the emitters to emit at the correct time.

Slaeden-Bob
11-08-2012, 11:05 AM
I don't think there are any ways to emit an object straight out of an emitter in a random location, so you'll need to either have several emitters or make the emitter move around randomly.

I'd probably go with one of Chris' two suggestions as well (Random movement of 1 Emitter; or Random emission by several static Emitters).

There is however one Emitter in the game that does have the ability to emit in a somewhat random place - The Creatinator!
But I highly doubt it would be of any use to you in this situation ;)

qwerty123456
01-06-2013, 06:41 PM
I would have the emmiter movebale. Then make it automatically follow a certain color tag as quickly as possible and hook up a randomizer to tags in random spots!

sportbil
01-06-2013, 09:26 PM
A pretty simple way is to stick the emitter at the end of a horizontal+vertical piston setup, kinda like this:

s-e
|
st

lines are pistons, s = stickerpanel, st = static stickerpanel, se = emitter on stickerpanel. Then hook a randomizer up to the pistons and tweak speeds as desired.