Game Development Reference
In-Depth Information
chopped pieces. Also, using the Spawn Emitter at Location node will allow you to drop
a particle system emitter. Using self and Get Actor Location is a good idea to spawn the
current position of the fruit.
Then, using Destroy Component and adding PaperSprite to its target will destroy the
full fruit sprite and leave only two chopped pieces. Finally, to stop receiving events on this
fruit blueprint (as it is already calculated in the score), you need to use Unbind all Events
from OnInputTouchEnter and set the target to the Sphere collider (or whatever collider
you are using as a physics component to the blueprint) and you will not receive any events
again!
Now you can duplicate the blueprint to make all of the other fruits, but don't forget to
change the sprites to the newly made fruit. Also, change the Add PaperSpriteCompon-
ent value to the correct value for chopped pieces.
Search WWH ::




Custom Search