playMaker

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

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
[source files] ChocolateBoy
« on: September 24, 2012, 03: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, 12:11:41 PM by Andrew_Raphael_Lukasik »

brendang

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #2 on: September 24, 2012, 09:50:19 PM »
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
    • View Profile
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #3 on: September 24, 2012, 11:52:46 PM »
Thank you, this will be very handy, I’ll wait for the unity package.

Tom

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
Re: [source files] ultra-simple platformer "ChocolateBoy"
« Reply #4 on: September 25, 2012, 03: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
    • View Profile
Re: [unity package] ChocolateBoy
« Reply #5 on: September 25, 2012, 04:05:03 AM »
Great much appreciated !

Damian

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

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #7 on: September 25, 2012, 12: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: 12351
  • Official Playmaker Support
    • View Profile
Re: [source files] ChocolateBoy
« Reply #8 on: September 27, 2012, 05: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: 282
  • I Love Playmaker!
    • View Profile
    • Portfolio
Re: [source files] ChocolateBoy
« Reply #9 on: January 30, 2013, 08: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!

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #10 on: February 02, 2013, 10:32:15 AM »
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: 282
  • I Love Playmaker!
    • View Profile
    • Portfolio
Re: [source files] ChocolateBoy
« Reply #11 on: February 02, 2013, 03: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.

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #12 on: February 04, 2013, 09: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: 337
    • View Profile
Re: [source files] ChocolateBoy
« Reply #13 on: February 05, 2013, 08:26:04 AM »
Did u remove this from dropbox? Seems like the webplayer isnt working

;)

Mark

Andrew_Raphael_Lukasik

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • my twitter @andrewlukasik
Re: [source files] ChocolateBoy
« Reply #14 on: February 05, 2013, 11:24:26 AM »
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.