Poll

Problem with FPS in my game...

My computer
2 (25%)
The game
1 (12.5%)
StencylWorks gonna get a update soon with a solving on that problem?
5 (62.5%)

Total Members Voted: 8

Games are reeeealy slow...

Rob

  • *
  • Posts: 1268
I am on Firefox. If you happen to have other games opened in another tab, it will slow down the main game tremendously.

I just have pen collision and crisscross going together and they really slowed down each other.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Tigerslayer96

  • Posts: 9
Hey, everytime i am trying to add a sound and play the scene with the sound containing on it, then it sounds like the music is played twice on the same time... It really destroy the game feeling, and i dont really know why it happens....

Greg

  • *
  • Posts: 1259
Can you show us a screenshot of the behavior you're using to play the sound?

Rob

  • *
  • Posts: 1268
From my guess, there must be somewhere in your game (perhaps previous scene or certain part of game) you started you music and forgot to turn it off (stop all sound) and in the meantime started the same piece somewhere.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Tigerslayer96

  • Posts: 9
Here is a screenshot. This is what i have only done, but i dont know if i have missed alot things or done something wrong?... I saw a youtube videon on explaining, but that did just ruing my game :P

Greg

  • *
  • Posts: 1259
Putting that into the "always" wrapper block, without any other associated logic isn't a good idea.  By doing that, you're telling the system to play that sound every frame, no matter what.

If you only want the sound to play under certain conditions - you'll have to specify those conditions by using other logic.  If you want this to be the background music, just move that block to the "when created" wrapper and it will only play once.

Tigerslayer96

  • Posts: 9
Thanks, that info helped me out. Now i can play my game while listening to a music which AREN'T lagging anymore  :D


Thank You


UPDATE (28.06.2011): I am done with my game if you people want to test it... It is the game which i got help from you people (which i thank you much for). It it my first game, and i really like to hear comments on what u think about it :)

« Last Edit: June 28, 2011, 11:11:07 am by Tigerslayer96 »