How do I call call a function on instance variable change?

Get help using Construct 2

Post » Sun Jun 21, 2015 6:31 pm

LittleStain wrote:Trigger once while true will only trigger once while true..
Hence it only triggers once..

I would do the z-sorting on collision with player..
That will only trigger once if the player collides, but depending on how you've set things up, it could cause issues if you want the player to be able to walk through..


Yeah, i had some issues with that too. I tried soooooo many ways to optimize now im going nuts. Haha. Even dummy objects to use a second collision box. Any way, i want to limit the CPU usage in any way in can, and right now Z Ordering is my biggest resource hog, so i have to keep trying to find ways to optimize it.

Im gonna try using the oldValue idea there... :D
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Post » Sun Jun 21, 2015 6:54 pm

Finally!!!!!!

Image

I this is all i needed. Now my z ordering only uses 0.6% CPU even with LOTS of objects on the screen.

Sharing if anyone else might need to optimize.
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Previous

Return to How do I....?

Who is online

Users browsing this forum: plinkie, SERG 04, Yahoo [Bot] and 2 guests