How to Make a Game Like Jetpack Joyride using LevelHelper, SpriteHelper [Cocos2D 2.X edition] - Part 2

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

How to Make a Game Like Jetpack Joyride using LevelHelper, SpriteHelper [Cocos2D 2.X edition] - Part 2

Postby rwenderlich » Fri Jan 25, 2013 12:00 pm

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Site Admin
 
Posts: 2266
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 381 times

Re: How to Make a Game Like Jetpack Joyride using LevelHelpe

Postby seany242 » Fri Mar 01, 2013 4:40 am

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

Postby vladubogdan » Fri Mar 01, 2013 5:38 am

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: 133
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

Postby VZDe83 » Mon Apr 22, 2013 1:53 pm

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?
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

Postby vladubogdan » Tue Apr 23, 2013 4:58 am

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
vladubogdan
Uber Haxx0r
 
Posts: 133
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

Postby VZDe83 » Tue Apr 23, 2013 12:56 pm

no, it doesn't crash, just runs very slow at about 20 fps.

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

Postby vladubogdan » Thu Apr 25, 2013 7:00 am

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.
vladubogdan
Uber Haxx0r
 
Posts: 133
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

Postby VZDe83 » Thu Apr 25, 2013 3:07 pm

AWESOME! That's for the help.

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

Postby vladubogdan » Fri Apr 26, 2013 3:52 am

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: 133
Joined: Wed Aug 24, 2011 6:05 am
Has thanked: 0 time
Been thanked: 12 times

Postby MyBigBang » Tue Jan 21, 2014 9:30 am

Hi Bogdan,
I`m trying to follow your tutorial but I when I add my animated frames to the Level Helper project and I try to choose the animation from Generic Animation Properties there is no animation available. I`m sure to have all the files in my images folder. I noted that when I reopen the Animations.pshs file my frames are there but there is no animation set. Can it be the problem? And if yes why the sprite helper doesn`t save the animation just the images? Please, help me.
MyBigBang
Baby Hacker
 
Posts: 5
Joined: Sun Jan 19, 2014 7:56 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Official Tutorials

Who is online

Users browsing this forum: Bing [Bot] and 7 guests