playMaker

Author Topic: [source files] ChocolateBoy  (Read 10723 times)

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
[source files] ChocolateBoy
« on: September 24, 2012, 06:52:38 PM »
Hi there,
 Following @Damian question I just wanted to share here project files for interested newcomers to examine. I tried to make FSM's as simple as possible ("less is more" in PM).



CLICK TO PLAY (controls: arrows and space)

Quote
//subject: simple AI FSM behaviour example for 2D platform game

How to install:

1. Open "project ChocolateBoy" with Unity3D
   (this is only because custom Layer Collision Matrix (Edit>Project Settings>Physics))

2. Extract "ChocolateBoy package.unitypackage"

4. Import Playmaker from Asset Store
   (created with Pm v1.4.3)

5. Run "!delicious.scene"


///////version history/////////
24.09.2012 - first version
25.09.2012 - added functionality to randomly spawn collectible objects and fixed few things


PS: I invite you to share your simple projects' sources too! :)
« Last Edit: September 25, 2012, 03:11:41 PM by Andrew_Raphael_Lukasik »

brendang

  • Junior Playmaker
  • **
  • Posts: 63
    • Out to Play Interactive
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #1 on: September 24, 2012, 09:49:27 PM »
Very cool.  Look forward to taking a peek inside. Thanks for the generous share.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #2 on: September 25, 2012, 12:50:19 AM »
Hi Andrew,

 Thanks for sharing this!!! however few things to make ti go smooth:

 For some reason it's crashing Unity 3.5. Have you tested it on your end? it seems you did some clean up and everything.

 Also, you should not distribute the playmaker folder at all. Let the user import it from his asset store account instead, and provide just the scene, scripts and assets that you are using for what you want to share.

 Also, the proper way to share your project is to export it. It will generate a unity package that Unity will properly understand. Sharing the raw project files is not really recommended.

If you need help to properly export your project, let me know.

bye,

 Jean

tom3d

  • Playmaker Newbie
  • *
  • Posts: 16
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #3 on: September 25, 2012, 02:52:46 AM »
Thank you, this will be very handy, I’ll wait for the unity package.

Tom

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #4 on: September 25, 2012, 06:58:23 AM »
Hi,
@jeanfabre Thanks for feedback. I think it's should be working right now. I exported it as a unitypackage now however I added DynamicsManager.asset and TagManager.asset too because of custom Layer Collision Matrix

@brendang Hi, you may want to re-download files from attachment

@tom3d "ChocolateBoy package.unitypackage" is inside attachment now

A.

tom3d

  • Playmaker Newbie
  • *
  • Posts: 16
Re: [unity package] ChocolateBoy
« Reply #5 on: September 25, 2012, 07:05:03 AM »
Great much appreciated !

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: [source files] ChocolateBoy
« Reply #6 on: September 25, 2012, 11:26:53 AM »
Will look at it as soon I have time.  :o

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #7 on: September 25, 2012, 03:20:36 PM »
(update. I've added functionality to randomly spawn collectible objects across spawn-points and fixed few things)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [source files] ChocolateBoy
« Reply #8 on: September 27, 2012, 08:15:06 AM »
Hi,


 tested it and all is working fine. Well done!

 I woul dwork on the visual design to make the perspective mroe dramatic, you have a nice camera work, but the float shaders to make it less obvious. This might be intended tho.


 bye,

 Jean

Graham

  • Sr. Member
  • ****
  • Posts: 333
  • I Love Playmaker!
    • Portfolio
Re: [source files] ChocolateBoy
« Reply #9 on: January 30, 2013, 10:06:43 PM »
I am wondering, how did you come up with the value (1e+10) for the x-axis movement? You see it in the x-- and x++ set vector3.

Thanks!
More templates on the Unity Asset Store!

Disclosure: We are using affiliate links to our assets; we may receive a commission for purchases made through them. This helps us to continue developing and maintaining great products!

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #10 on: February 02, 2013, 12:32:15 PM »
Hi Graham,
x=1e+10 and x=-1e+10 are just points far far away in both directions to serve as targets for move/look toward actions. They're such high to make sure no one will reach them while playing.

Graham

  • Sr. Member
  • ****
  • Posts: 333
  • I Love Playmaker!
    • Portfolio
Re: [source files] ChocolateBoy
« Reply #11 on: February 02, 2013, 05:18:02 PM »
Thank you Andrew! I really appreciate the reply. I have been using your scene to pull little tidbits of info on how to make my own side scrolling controller.
« Last Edit: February 02, 2013, 05:23:49 PM by Graham »
More templates on the Unity Asset Store!

Disclosure: We are using affiliate links to our assets; we may receive a commission for purchases made through them. This helps us to continue developing and maintaining great products!

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #12 on: February 04, 2013, 11:59:58 AM »
Happy to hear to that. You are welcome to dissect my next example project in this tread. I tried to introduce some simple animations there.

A.

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Re: [source files] ChocolateBoy
« Reply #13 on: February 05, 2013, 10:26:04 AM »
Did u remove this from dropbox? Seems like the webplayer isnt working

;)

Mark

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #14 on: February 05, 2013, 01:24:26 PM »
Did u remove this from dropbox? Seems like the webplayer isnt working
I don't know maybe it was DropBox-end problem. Look like working now to me.