Skip to content

Feature: New set_z tag for Particles.rb

Rey requested to merge TheRey/pokemonsdk:demo/particles_set_z into development

WARNING

  • To ensure anyone can test without Studio 2.0, this MR has been made from the PSDK .26.20 commit. Please make sure to NOT rebase the branch until the merging can be done (after the code review and tests)

MR Description

  • This MR adds a new tag for the Particles.rb file: set_z. It allows to set an arbitrary z property to the particles, which can be useful when a particle must always be on top of everything or under the map for specific purposes.

Before testing

  • Backup your Particles.rb file
  • Create a new particle in the remaining Particles.rb with the set_z tag. It is used in the exact same way as the add_z tag for which you should find examples of use in your file.

Tests to realize

  • Have your particle be played: it shouldn't crash, and should appear at the right z. (Either put an very high z value to see if it is on top of everything, or a low/negative one to have it appear under the map.

Merge request reports