what size does the character have to be to put a new one in
16×16 pixels should do fine!
also how can i add in some sort of coin system so they can be collected and buy upgrades in the store
Implementing a coin system is a relatively large feature to explain, but we might add it as a free update in the future!
I love the app & thank you. I have two slight issues if you could offer some advice. The first is I get a blank screen when the app launches. The “Loading” images are all in Images.xcassets / LaunchImage.faunchimage but just get a black screen while app is launching. This happens in Xcode’s simulator as well as on an actual device.
The second issue is; when you hit the home button, then try to restart the game, the “Game Over” screen remains on top of the actual gameplay. I have to double click the home button, kill the app, and restart the game. I am running the latest version of Xcode and an iPhone 5s on iOS 8.0.2
We haven’t run in to this ourselves, but we’ll see if we can get it fixed. Thanks for letting us know about this!
This has been fixed in version 1.0.6, which is now available!
Everytime i try running the app i get an build failed ” Command /bin/sh failed with exit code 1” does anybody else get this and ca i please get help to resolve this
Do you have any scripts in the “Run Script” part of the “Build Phases” tab?
It has been fixed, it was something to do with scripts, also is it possible to make the game character larger?
Sorry when i try to archieve it, it gives me that error, this is the shell: /bin/sh
CFBundleVersion=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” ”$buildPlist”)
CFBundleVersion=$(($CFBundleVersion + 1))
/usr/libexec/PlistBuddy -c “Set :CFBundleVersion $CFBundleVersion” ”$buildPlist”
what should i do??
You can try scaling either game player texture larger, or specify a scale in the Player entitys code.
If the error is still there, you can remove the Run Script if you so desire. All it does is automatically increase the build number with each build.
how do I remove the script?
Just click the X icon in the upper right corner (if I remember correctly).
how do i add my own rev mob and iAds in?
Check the documentation and the file called Common.h, it has proper instructions on how to set either of those up.
Hi, first I would like to thank you for providing such detailed code. It is helping me learn a lot about how to program this type of game on iOS.
I am having the same issue as elamberth, in that when I tap “Restore Purchase”, and tap “Cancel”, I get the “Tap to Restart” overlay. When I tap “Tap to Restart”, the game over screen remains ontop of the regular gameplay.
I’ve tried studying the code to figure out why this is happening but can’t seem to figure it out. Can you help please?
I am using an iPhone 6 Plus on iOS8.
Hi, I am still waiting on a reply/solution to this issue. Please respond.
Terribly sorry for the delay! We’ve begun working on a fix and should, with any luck, have it available early next week.
Here’s the latest updates notes.
Version 1.0.6 (December 1st, 2014)
Its showing an error now with the new update
That’s not good! We’re not able to reproduce this though. Where is it giving the error exactly?
Sorry i fixed it!!!
Glad to hear!
Hey, how would i be able to change the score in meters at the top left of the screen from white to black? thanks
In JPGameScene.m (line 88), right after [self.scoreLabel setFontSize:16]; you should be able to use something like [self.scoreLabel setFontColor:[SKColor blackColor]]; to set the text color to be black instead.
Please, how to change the font?
I uploaded a new font, but when the name changes from Nokia Cellphone FC to new font name, it does not work.
The easiest way would be to use existing fonts on iOS, which can be found here: http://iosfonts.com/
You do need to make sure to use the exact wording specified on that page (ie. “ArielMT”) in order for the font to work.
Here’s a pretty good tutorial on adding entirely custom fonts, however: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
I am using Revmob so how I can change it to full screen ads instead of banner
And when game loads its shows black screen is there anyway I can add loading screen ?
We’ll see if we can squeeze in interstitial ads in the next update.
Can you please tell me how to add one sound on jump and one sound on death.
Or point me to a tutorial
We will try to add simple sound effects with the next update, as well as a coin system for purchasing “upgrades”.
i want to make the file TopHorizon.png fullscreen, what should i do?
Have you tried simply replacing the file?
Looks awesome, quick questions.
any possible way to add sounds to the character running/ once it jumps and falls?
Also how difficult would it be to implement a different ad network?
We’ll be adding sample sound effects, AdMob/RevMob support as well as a coin system & coin store in an upcoming update.
Which ad network would you like us to add (iAd and RevMob have already been integrated, with AdMob coming soon)?
i tired to contact you via email!
there is problem in the iPad version and please check ur email
I had a quick look and couldn’t find any emails regarding Junk Punk and iPad. What was the issue?
check the mails from ” firstname.lastname@example.org “
Ok, found them! I’ll answer here, so that anyone else having the same issues can see this.
First off, iAd is setup automatically, so that shouldn’t require anything on your part (apart from signing the iAd contract with Apple, if you haven’t done that).
Does the exit-and-resume issue happen on the latest version, or on a version that’s at least 1.0.5? We’ll have to test that out and fix it if it does!
Lastly, we’ll be adding example sound effects in an upcoming update.
Thanks alot for you answer dear, exit-and-resume in the last version i have buy it .. iPad issue is when you little run and click its not jump
So only on an iPad, the player doesn’t jump at the beginning of the game?
yes only on the ipad
We’re working on a new bug fix update, which we’re trying to get out to Code Canyon for review today or tomorrow.
Here is my app https://itunes.apple.com/us/app/running-man-saga-begins/id958475462?mt=8
I have released my app, and I have noticed that when (either) a call or notification takes the screens focus the game can continue to play (in the background) and make ridiculous hi scores. Any ideas for a quick work around for this.
Are you using at least version 1.0.5 or newer of the Junk Punk template?
Yes, also the removeads work for about 30 seconds and then ads appear again (iads only)
Also am I required to change JP_AdsDisabled to something? I have tried both Reference name and Product ID, both cause crashes. I do feel it is something trivial I have missed. Any help would be greatly appreciated. Thank you
i have two people complaining about the IAP to remove ads, please help
We’re looking into this right now and will hopefully have a few within a day or so!
JP_AdsDisabled should be set to NO, if you want ads to work.
I have sorted the call/focus issue, added hit wall to the pause overlay, instant death!
But still have issue with the ads appearing after the IAP, thanks for looking into it
We’re submitting a fix today that should fix both of these issues!
i am thinking about buying your source code, do you already know when approximately the new update will be released?
looking forward to it.
all the best.
All updates have been released already.
great to hear that! i will make final decision in the next days…
App Review has rejected this app.
What to do?
I email you before two days, check the email
You probably didn’t add the in-app purchases in iTunes Connect with the same identifier as in the config file.
Reference Name: JP_RemoveAds
Product ID: RemoveAds
Is it ok like this ?
You need to specify the same Product ID in the config file and in iTunes Connect. The reference name doesn’t matter in this case.
Any ideas on my ads returning after iap? Even if you can point to me to a tutorial or something!! Thanks Didstopia
I have narrowed it down, when purchased ads are removed for that session. When the app is closed and reopened ads reappear.
We’re working on a quick fix for this!
Excellent, can’t wait!!
I had a look at the update, which changes did you make? IAP Buddy?
JPGameViewController.m and JPGameScene.m have been changed. They include fixes to the way ads are displayed (ViewController) and how game pausing is handled (GameScene).
Excellent, it works fine now
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Why buy with Envato
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
Deliver better projects faster. Web, design & video assets
Unlimited downloads, from $16.50/month
Create Beautiful Logos, Designs & Mockups in Seconds
Design like a professional without Photoshop
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work