This change fixes particles (portals, pads, etc) from not rotating based on the sprite.
This changes the files: GameObject.cpp and PlayLayer.cpp.
The changes that may have to be looked into, is with PlayLayer.cpp, as the notable change I've made was to have the particle added to the layer instead of _particleBatchNode, as it seems to fix the issue.
The change I've made with PlayLayer.cpp is setting the scale properly for the particles. (By surrounding the ternary operator with parenthesis)
The following screenshots show the result of the fix.
This change fixes particles (portals, pads, etc) from not rotating based on the sprite.
This changes the files:
GameObject.cpp
andPlayLayer.cpp
.The changes that may have to be looked into, is with
PlayLayer.cpp
, as the notable change I've made was to have the particle added to the layer instead of_particleBatchNode
, as it seems to fix the issue.The change I've made with
PlayLayer.cpp
is setting the scale properly for the particles. (By surrounding the ternary operator with parenthesis)The following screenshots show the result of the fix.
Let me know if there needs to be any changes.