Game Development Community

Pepper Spawn Point problem?

by jydog · in TGB Platformer Kit · 05/10/2008 (10:06 am) · 2 replies

I'm trying to place pepper pickups in my scene.

When I assign the Spawn Point to it, it disappears. What do I need to do to properly enable it?

I figure it is similar to the earlier problems with spawn point. I do not notice anything by examining your demo which does work correctly. But I haven't caught it. : (

Randy

Also, I gave them a score system. The score increments but they do not show up on screen.

#1
05/10/2008 (2:24 pm)
To spawn a pepper you need to add any animated sprite to the scene (the pepper makes the most sense, but you can add whatever you like as it gets hidden during gameplay). Add the SpawnPointBehavior to the object and select the target object as "PepperPickup".

If you want to just add a normal pickup you must add two behaviors - PickupBehavior and PepperPickupBehavior. This will not spawn a pickup, it will be there once and not interact with the checkpoint system at all.
#2
05/10/2008 (4:29 pm)
I'm guessing you meant "Pepper Template" as a target object option.

Seams to work now. I had done the above ( except the "PepperPickup" bit ) and it did not show up. My guess is I probably did not close out TGB to effect changes and/or the minimum span distance messed me up.

OK, now how does your demo work ok and the "Pepper Template" is NOT a target object option ? ? ?

Thanks.

--------------------
No, I guess my main problem is with my scoring behavior interacting with the spawn point behavior.

Back to the drawing board. :(