Hi, I've searched but still clueless
So I have a button which spawns a object(random one), when I jump on the button again(after some time) I want to spawn a new one at the same place.
Problem is when I trigger the emitter again no new object will be spawned since the old object is still in place.
I don't know how long I'll need that object, so I can't give it a lifetime.
Best case scenario is user jumps button, object spawns, user does stuff at the object returns to the button, jumps it again, new object spawns, user does stuff at the object and so on....
I've tried setting max emitted to 2 and set delete oldest on when max reached but that doesn't work either, so how can I spawn a new object when the old one is still in place? Remind you that object is random
thx

- Forum
- LittleBigPlanet 2 - 3 - Vita - Karting
- LittleBigPlanet 2
- [LBP2] Help!
- spawn object from emitter - delete old one
Results 1 to 6 of 6
-
02-11-2011 #1Docta_LuvGuest
spawn object from emitter - delete old one
-
02-11-2011 #2
-
02-11-2011 #3Toolmaster of LBPCentral
- PSN
- v0rtex2002
- Join Date
- Jan 2009
- Location
- Minnesota (USA)
- Posts
- 2,086
- Blog Entries
- 5
With the exception of dark/light matter and holo, objects cannot be emitted into an already occupied space (even if that space is occupied with an object emitted from the same emitter). So... you either need to destroy the object yourself before re-emitting, or you need to move the object out of the "emit-zone" (either immediately after it's emitted or right before emitting a new one).
I hope this helps.
-
02-12-2011 #4Docta_LuvGuest
Thanks, that saved me a lot of time, I gave the object a player sensor to destroy it after it's done with the trigger area near the button, works exactly how I wanted it

One thing though, how can I reset the Randomiser?
I now hooked the Randomiser up to 15 objects(emitter) and set a counter so it gives me some but not all objects from the pool.
Additionally I have set the Randomiser to Pattern: Add and Input Action: Override Pattern so it gives me truly unique objects aka no object twice in a round, however I'm testing it and while it works one object will always be selected by the Randomizer(it will not be spawned anymore) so how can I reset it so that it can choose from the whole objects pool?
One solution would be to delete the Randomiser and create a new one but there's gotta be an easier way?!
-
02-12-2011 #5TrevorRyan333Guest
The Randomizer sucks, after it activates something. it doesn't turn off, except for lights. And the other problem, simple, The Creationator.
-
02-12-2011 #6Docta_LuvGuest
hmm seems a simple reload did it, everything is back to default
«
Previous Thread
|
Next Thread
»
All times are GMT. The time now is 01:37 AM.
Powered by vBulletin® Version 4.2.2
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
Extra Tabs by vBulletin Hispano
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
Image resizer by SevenSkins
Extra Tabs by vBulletin Hispano
Reply With Quote

