Discussions for Scenes for Version 1.2.X Fullscreen Mode here
Todo sobre iStripper
April 9, 2015, 5053 respuestas
@EverthangForever
In the scenes that I supplied you should be seeing the butterflies circling around the performer with some up and down bobbing motion imposed on the circling - if you are not seeing this then something is wrong. This is acheived, as is described in the comments, by using three layers, one for the butterflies in front of the performer, one for the performer and a third for the butterflies behind the performer. Each layer is defined by a node in the scene file - two being quads and the other a clipSprite. It is these layers that are referenced by the depth parameter, i.e. depth is not the actual Z coordinate and changing it does not affect the size of the butterflies only what is behind what.
To make the sizes vary the simplest thing to do is make their sizes vary with theta in the butterfly_a and butterfly_b functions. This can be done by multiplying the variable a by some function of theta immediately after a is calculated - though at the moment I can't say just what form this function would take.
The two parameters DELTA_X and DELTA_Y exist to introduce "erratic" motion with DELTA_X providing an X offset to add to the butterfly position and DELTA_Y a Y offset. Try fiddling with the coefficients of DELTA_X, multiplying it by some constant, or completely replacing it with your own expression.
I will probably play about with this over the weekend and have something more definate for you on Monday.