Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Pixel Runner Template

Discussion in 'Assets and Asset Store' started by abar, May 5, 2014.

  1. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Pixel Runner is a retro-styled infinite runner template.

    web-demo

    It features a flexible level generation system that allows you to build infinite levels that progress through predictable stages. This means that you can start the game off gently and gradually introduce hazards of increasing difficulty, or have contrasting sections appear in a predictable sequence throughout an otherwise randomly generated level.
    It also has a simple menu system with built-in animation support, and a sound-manger for handling sound fx and music.
    It's easy to customize and fully optimized for mobile.

    Features:
    • Flexible system for generating infinite levels
    • Optimized for mobile
    • Supports touch and mouse controls
    • Create multiple parallax layers without any code
    • Simple to extend
    • Clear, fully documented code in C#
    • Menu system with support for animation and sound effects
    • All graphics, sound effects and music included
    • Uses Unity's 2D features

    Available on the Asset Store here
     
    Last edited: May 9, 2014
  2. Berserker44

    Berserker44

    Joined:
    Sep 1, 2013
    Posts:
    29
    This project seems awesome! I tried the demo and Im really impressed. Although it is in 2D, what are the chances this could be turned into a 3d project? I'm a 3d artist and it would be really cool if could use my 3d Assets I totally understand that physics and the scripts behind the engine are 3D, but I just wanted to ask.

    Best of luck
     
  3. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    It would definitely be possible to use 3d assets with it. In theory all you'd need to do is replace the prefabs for the ground pieces with 3d models instead of sprites. Probably the biggest issue would be in changing the camera from orthographic to perspective, as some of the calculations for the infinite layout of pieces expects the camera to be orthographic. Nothing insurmountable though.
    Definitely let me know if you try it, I can help you out with the camera stuff if you need me to.
     
  4. NothingElseMatters

    NothingElseMatters

    Joined:
    Jan 16, 2014
    Posts:
    3
    Hi, the demo looks great! I'm very tempted to make the purchase. Just wondering if it already works fine on android and IOS? Thanks
     
  5. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Yes it's all setup for mobile with touch controls (tap to jump). There's nothing heavy duty going on either so performance should be good across a range of devices.
     
  6. NothingElseMatters

    NothingElseMatters

    Joined:
    Jan 16, 2014
    Posts:
    3
    awesome thanks
     
  7. ARTmuffin

    ARTmuffin

    Joined:
    Dec 1, 2014
    Posts:
    5
    I'm fairly new to Unity and am an artist with about zero knowledge of coding. I'm very interested in buying this template but am unsure of the ease of reskinning this and getting it working. Realistically, how easy will it be for me to just swap out art assets and set up levels and get this game running on my own? Will it really just be an art swap or do I need to be able to write code? I know how to swap materials and create atlases, I'm just wondering if that's going to be enough to get me through it to a playable version with my art.
    Any feedback is appreciated.
     
  8. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    I've tried to set it up so you can do as little or as much as you like, depending on your experience. Swapping out the textures keeping their dimensions the same would be the simplest form of customisation, and you'd end up with a game that ran exactly like the web demo, except with your graphics. (If you changed the texture dimensions you'd also need to modify the sprite pixels-to-units value as well so the size of the sprites stayed the same).

    The level is broken into short sections which are picked and repeated randomly at runtime creating an infinite length level. You can modify or create new sections and also have some control over where in the level they appear without any coding whatsoever.

    Doing things like adding new menu screens, or changing the behaviour of the gameplay would require some scripting.

    Hope that helps, if you have any further questions please ask.
     
  9. ARTmuffin

    ARTmuffin

    Joined:
    Dec 1, 2014
    Posts:
    5
    Will the game also publish to mobile if I were to simply swap art and use your template? You mention it being the same as the web demo, but you don't mention mobile. I'm guessing that it publishes the same for mobile...is that correct?
     
  10. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Yes, it will publish to mobile fine.
     
  11. ARTmuffin

    ARTmuffin

    Joined:
    Dec 1, 2014
    Posts:
    5
    Thanks for the info Abar.
     
  12. ARTmuffin

    ARTmuffin

    Joined:
    Dec 1, 2014
    Posts:
    5
    Abar, I've downloaded the template and have been digging through everything but don't actually see the .png files you used to create the atlases. Am I missing something? I'm not sure how else to swap the art if I don't have the source you used to create the atlas. Any help is appreciated. Thanks again.
     
  13. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    What you're referring to as the atlas texture is actually the source art. The tiles are painted directly into that texture, there aren't separate textures for each tile. Just paint over the tiles in that texture.
     
  14. ARTmuffin

    ARTmuffin

    Joined:
    Dec 1, 2014
    Posts:
    5
    Ok, thanks.
     
  15. AndPoint

    AndPoint

    Joined:
    Jan 13, 2015
    Posts:
    6
    Hi. I love your game. If you can add coins to collect it become better. also improve your game with level management. and you can make a lot of sale. I will buy if you add coins or something to collect. Waiting for your update.
     
  16. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Thanks, adding coins sounds like a good idea, I've been thinking of doing an update for Unity 5 so I may add this.
     
  17. Illujr

    Illujr

    Joined:
    Mar 25, 2015
    Posts:
    2
    hi abar. will this template work on unity 5? just wanna ensure before i buy it.
    will we be able to update this package after you release a new update? or do we have to re-purchase again? thanks
     
  18. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    I haven't submitted a Unity 5 version yet, but it imports into Unity 5 without any issues and runs fine. All updates on the Asset Store are free, you just have to re-import from the Asset Manager window.
     
    Illujr likes this.
  19. Illujr

    Illujr

    Joined:
    Mar 25, 2015
    Posts:
    2
    thank you sir. just bought this pack.
     
  20. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    Hi,

    On Unity 5 , the animation "jump" is never called ..

    Can you help please ?

    Thanks !
     
  21. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Hmm, he's definitely jumping here. Have you modified anything or are you seeing this in a freshly imported package? Also, are there any errors/warnings displayed in the console?
     
  22. Gnatty

    Gnatty

    Joined:
    May 17, 2012
    Posts:
    77
  23. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Yeah, I have to admit I do like canabalt. Excellent game!
     
  24. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    Hi,

    No I didn't change anything. Anyway, I fixed it myself, thanks for the help.

    Another thing : sometimes the player dead after a "big jump" .. is it normal ?
     
  25. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    The player should only die from either falling off the screen, hitting a wall, or colliding with spikes.
    Are they just dying in mid-air? That seems very strange.
     
  26. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    No, hitting the floor. when the player jumps from "hight"
     
  27. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Hmm, and you're definitely not hitting any walls or anything tagged with "spikes"? Could you make a quick video of it, I'm not able to reproduce here so it would greatly help in working out what's going on.
    Thanks.
     
  28. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    Hi,


    check this video :

    https://everyplay.com/videos/15677123

    Thanks !
     
  29. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Thanks, that was very helpful. I've submitted a new package that hopefully fixes this issue, should be live within the day or two.
     
  30. ababab5

    ababab5

    Joined:
    Apr 15, 2014
    Posts:
    508
    mme
    You're welcome my friend!

    Is it possible to send my the script by mail please ? I really hate the unity5 update asset system ..

    My email : dev@barouch.fr.

    Thanks a lot !
     
  31. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Sure thing, I'll send it over.
     
  32. BloomobGameStudio

    BloomobGameStudio

    Joined:
    Oct 24, 2014
    Posts:
    12
    hi, i've same problem (player died hitting the floor). Can you send me the script by mail please? thanks

    my email: bloomob.com@gmail.com
     
  33. BloomobGameStudio

    BloomobGameStudio

    Joined:
    Oct 24, 2014
    Posts:
    12
    Hi,
    I would need to bring up a coin or other items to collect along the way. Where should I put the function?
    thanks and compliments for your package.
     
  34. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    If you're on Unity 5 the fix should already be there, you just need to update it in the asset store window. If you're already on the latest version (1.2) then let me know.

    For collecting things, create a sprite for the coin, add a box collider to it, set isTrigger to true, and put the object on the layer "IgnoreRaycasts" (or create a new layer for collectable things). Then you'll need to create a coin script that implements OnTriggerEnter and put your collection code in there. Add that to your coin object, and place some coins inside the level blocks. Hopefully that should do it.
     
  35. BloomobGameStudio

    BloomobGameStudio

    Joined:
    Oct 24, 2014
    Posts:
    12
    yes, i've Unity 5 and i bought 1.2 version and i've the problem.

    thanks for other informations.
     
  36. abar

    abar

    Joined:
    Jan 12, 2014
    Posts:
    72
    Ok, I'm investigating.