Danger Cats! now works 100% in 0.81!

firemaplegamesfiremaplegames Member Posts: 3,211
edited November -1 in Announce Your Game!
Hey,

I finally got Danger Cats! working again in version 0.81...
I uploaded it to gamesalad.com, let me know if you see anything weird.

I added the Italian Restaurant levels to the web version as well, so now there are 80 levels in total to play for free.

One of the things that wasn't working was having the Destroy Behavior after some other Behaviors. The Destroy behavior always fired first and the game ignored the other Behaviors. I fixed it like this:

Previously:

Rule
When TOUCH is PRESSED
Play Sound "Goodbye!"
Destroy Actor

This no longer works for me. Destroy would get called first, so it would not play the sound.

I fixed it like this:

First, create a new boolean Attribute in the Actor called 'destroyMe'

Rule
When TOUCH is PRESSED
Play Sound "Goodbye!"
Change Attribute self.destroyMe to TRUE

Rule
When self.destroyMe = TRUE
Destroy Actor

This now works. I just needed to separate them. I went through everything and tried to lock down as much as possible. It seems good now, and it does play silky smooth on the website. It plays pretty much the same on my 3GS as it did before, I've yet to check it on the 3G/2G/iTouch.

Now I will dig into Stunt Squirrels! and see what I can figure out. Wish me luck!
I really hoped I could take a break from working on Stunt Squirrels!, oh well...

Joe

Comments

Sign In or Register to comment.