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

  • JGary321JGary321 Member Posts: 1,246
    Good luck!
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    thanks for the tip, I've got some similar rules in my games.
  • rebumprebump Member Posts: 1,058
    I was having to seperate things out from the destroy (among other things) even in 0.7.0 FMG!! You must have gotten very lucky to not have run up against it.

    0.8.1 seems to be forcing us to cover our butts since things are running more speedily!
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, i was just being lazy before!
  • design219design219 Member Posts: 2,273
    By the way, I finally got the full version of Danger Cats and love it. I can tell you have a winner because my wife, who hates video games, played this for quite a while! I left a review and rating.

    Well done.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    thank you!
  • NexusGameStudioNexusGameStudio Member Posts: 265
    Just an update, Danger Cats! is now listed under "Whats Hot" in the game section of the App store. Congrats!
Sign In or Register to comment.