bobatealee's Forum Posts

  • 3 posts
  • The effect sprite is always spawned at the particle object position. If you know which coin the particle object is attached to (say with hierarchy or pin), you can accurately pick that coin.

    My effect sprites are given a small random offset in the particle parameters itself. There's a chance that, through sheer randomness, they could end up 'closer' to a different coin than the one that they are spawning from.

    Currently, I have the coin spawning a particle system and adding that system as a child. The system then spawns effect sprites. The root of the issue is that there's no way to actually make the connection between the particle system and its spawned effect sprites, unless there's some way Scripting could access that?

  • The only solution I can think of is to check which coin is the nearest (or overlapping) when the effect object is created.

    I thought about this and have tested it, but this method is very rudimentary and not entirely accurate depending on how the Particle objects end up moving.

  • Hi there. I have some coins.

    These coins spawn a Particle, to create a shine effect. These Particles use the built-in functionality of spawning a separate object as part of the system instead of the using Particle's own image.

    As you can see, all of the shine effects are gold. I would like the silver ones to have a silver shine, and the Sprite object I am using has animations for both gold and silver.

    How can I check if the Particle the object is a part of is gold or silver?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 3 posts