How to Make a Game Like Jetpack Joyride using LevelHelper, SpriteHelper [Cocos2D 2.X edition] - Part 2
9 posts
• Page 1 of 1
How to Make a Game Like Jetpack Joyride using LevelHelper, SpriteHelper [Cocos2D 2.X edition] - Part 2
This is the official thread to discuss the following blog post: How to Make a Game Like Jetpack Joyride using LevelHelper, SpriteHelper [Cocos2D 2.X edition] - Part 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

rwenderlich - Site Admin
- Posts: 1780
- Joined: Thu Dec 23, 2010 4:14 pm
- Has thanked: 26 times
- Been thanked: 187 times
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
The lasers in my project aren't showing up when I run everything. They appear (animated) in the scene tester for Level Helper and I've saved everything and I believe the Animations.pshs file is in the correct spot. Any suggestions? Thanks a ton!
- seany242
- Baby Hacker
- Posts: 8
- Joined: Sun Sep 18, 2011 6:11 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
Make sure your animation image files and pshs files are in the resource folder. Cocos2d should print an error message in the console if it does not find the image files but you need to be in debug mode.
- vladubogdan
- Uber Haxx0r
- Posts: 131
- Joined: Wed Aug 24, 2011 6:05 am
- Has thanked: 0 time
- Been thanked: 12 times
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
Hi I am experiencing a similar issue. I have made sure that all the animation files are included in the project, but I get an error saying "No active frame in animation laserAnim..."
Any idea how to fix the issue?
Any idea how to fix the issue?
- VZDe83
- n00b
- Posts: 3
- Joined: Mon Apr 22, 2013 1:50 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
Hey,
Does it crash? This is a log message that i put in case something is wrong but i never seen this log before actually printing. So can you post some code or send me the project to see whats going on? vladu dot bogdan @ gmail dot com
Does it crash? This is a log message that i put in case something is wrong but i never seen this log before actually printing. So can you post some code or send me the project to see whats going on? vladu dot bogdan @ gmail dot com
- vladubogdan
- Uber Haxx0r
- Posts: 131
- Joined: Wed Aug 24, 2011 6:05 am
- Has thanked: 0 time
- Been thanked: 12 times
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
no, it doesn't crash, just runs very slow at about 20 fps.
I'll send you the project.
Thanks for the help.
I'll send you the project.
Thanks for the help.
- VZDe83
- n00b
- Posts: 3
- Joined: Mon Apr 22, 2013 1:50 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
The problem with your project was as follows
1. "Animations" spritehelper document - had previously sheet named "Animation" then you saved then you changed the sheet name to "animation" (lower A) but images where not saved anymore. this caused xcode to not find the texture file. Just remove the image files and resave this scene.
2. And the most inportant problem, in the other spritehelper document that you have, you had an empty animation called "laserAnim" this was empty - no frame in it.
You also had "laserAnim" in the "Animations" spritehelper document. Inside LH you assigned the "laserAnim" that was empty to the sprite.
This caused this problem.
Just remove "laserAnim" animation that is empty from the backgrounds SH document and assign the good "laserAnim" to the sprite then resave.
1. "Animations" spritehelper document - had previously sheet named "Animation" then you saved then you changed the sheet name to "animation" (lower A) but images where not saved anymore. this caused xcode to not find the texture file. Just remove the image files and resave this scene.
2. And the most inportant problem, in the other spritehelper document that you have, you had an empty animation called "laserAnim" this was empty - no frame in it.
You also had "laserAnim" in the "Animations" spritehelper document. Inside LH you assigned the "laserAnim" that was empty to the sprite.
This caused this problem.
Just remove "laserAnim" animation that is empty from the backgrounds SH document and assign the good "laserAnim" to the sprite then resave.
- vladubogdan
- Uber Haxx0r
- Posts: 131
- Joined: Wed Aug 24, 2011 6:05 am
- Has thanked: 0 time
- Been thanked: 12 times
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
AWESOME! That's for the help.
Do you have any idea why it's running at 30 fps?
Do you have any idea why it's running at 30 fps?
- VZDe83
- n00b
- Posts: 3
- Joined: Mon Apr 22, 2013 1:50 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Make a Game Like Jetpack Joyride using LevelHelpe
Test on the real device for accurate fps. Optimize physical shapes for better performance. Set "Allow Sleep" in SH also improves performance (enabled by default)
- vladubogdan
- Uber Haxx0r
- Posts: 131
- Joined: Wed Aug 24, 2011 6:05 am
- Has thanked: 0 time
- Been thanked: 12 times
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests