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.

PlayMaker - Visual Scripting for Unity

Discussion in 'Assets and Asset Store' started by Alex-Chouls, Dec 31, 2010.

  1. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Check out Easy Save, a complete Save/Load system with PlayMaker support.
     
  2. p_hergott

    p_hergott

    Joined:
    May 7, 2018
    Posts:
    413
    Nm i figured it out. I never got the navmesh little basic add on, on the eco browser. Very simple fix, weeks of trial and error until i found 1 basic action lol
     
  3. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Glad you got it working. I think Jean thought you were working with Machine Learning AI... there are too many toys to play with in Unity!
     
  4. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  5. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    419
    Hi, ok cool.

    Yes I though you were using the Machine Learning system :)

    Always make sure you share your difficulties with us on our forum as early as possible, this will save you precious time and nerves :)

    Bye,

    Jean
     
  6. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  7. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  8. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  9. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573

    "Playmaker is the smoothest and most intuitive way for non-coders to implement functionality into our games!"
    Andreas N Grøntved, Lead Animator, Playdead
     
    Lars-Steenhoff likes this.
  10. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  11. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Check out iOmoon, a visually stunning VR experience #MadeWithPlaymaker

    "Overall iOmoon is a VR sci-fi wonder and a tribute to the guys over at Headtrip."
    The Reality Sandwich
     
  12. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  13. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Hi,

    I am using Low Poly FPS and playmaker for a project. The FPS assets player sends a raycast bullet when shooting. I want an object with a playmaker FSM to detect this raycast hit (and maybe even its force if possible) and fire an event after detection. I tried several times but I have no idea how to do it.

    Any idea?

    Thanks, Hannes
     
  14. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    419
    Hi Hannes,

    I would contact the "Low Poly FPS" author for this, to check if the FPS system features a callback or event for that occasion, if it doesn't then modifying the system to allow for this may be required. You can cc me when you contact the author, maybe I can do a proxy or a custom action to provide support for that.

    Bye,

    Jean
     
  15. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  16. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Hi. I did, but he is not responding. However I am not sure if it is asset specific. What is happening in the asset is, that a raycast is sent as a bullet, which can impact and affect rigidbodys. What I'd like to do is have an object/character with a playmaker FPS that can detect the raycast and when it is detected fire an event. Alternativly it would be great if it can get the impact force of the raycast and store it in a variable.
     
  17. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Hi, in Unity's physics system the object hit by a raycast isn't aware of the event (unlike collision events where both objects get the collision event). The code that did the raycast would have to send a message/event/apply the force.

    Start a thread on the PlayMaker forums and we can explore your options in more depth:
    - You could do the raycast in PlayMaker. There are samples and videos to help.
    - It's probably a single line of code added to Low Poly FPS to send an event to PlayMaker. Somebody on the forums with the plugin can probably help. I'll also take a look...
     
  18. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Ok, great, thanks for your help so far. I will post in the Playmaker forum, Low Poly FPS Thread is kinda dead...

    But maybe I already found a hint. Here is a piece of code from the script thats for the shooting:


    //Raycast bullet
    RaycastHit hit;
    Ray ray = new Ray (transform.position, transform.forward);

    //Send out the raycast from the "bulletSpawnPoint" position
    if (Physics.Raycast (Spawnpoints.bulletSpawnPoint.transform.position,
    Spawnpoints.bulletSpawnPoint.transform.forward, out hit, ShootSettings.bulletDistance)) {

    //If a rigibody is hit, add bullet force to it
    if (hit.rigidbody != null)
    hit.rigidbody.AddForce (ray.direction * ShootSettings.bulletForce);

    //********** USED IN THE DEMO SCENES **********
    //If the raycast hit the tag "Target"
    if (hit.transform.tag == "Target") {
    //Spawn bullet impact on surface
    Instantiate (Prefabs.metalImpactPrefab, hit.point,
    Quaternion.FromToRotation (Vector3.forward, hit.normal));
    //Toggle the isHit bool on the target object
    hit.transform.gameObject.GetComponent<TargetScript>().isHit = true;
    }

    In the last half it should be possible to say if (I hit something with tag X), start a playmaker script thats added to the object. Correct? Maybe you could send me that code snippet, so I can implement it (I am a non coder, thats why I use playmaker :) )
     
  19. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Add this:

    Code (CSharp):
    1. var fsms = hit.transform.gameObject.GetComponents<PlayMakerFSM>();
    2. foreach(var fsm in fsms) fsm.SendEvent("Hit");
    Typing this on a phone, so there might be typos! But that should work...

    Also check out this page to access variables etc.:
    https://hutonggames.fogbugz.com/default.asp?W329
     
    HanAusBerlin likes this.
  20. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Man, you are my hero! It works, finally I have the link to playmaker FSMS and can mess around like I am used to.
    The force option is still there, but I can come back to that later. :)
     
  21. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Happy to help! :)
     
  22. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  23. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  24. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Check out this behind the scenes look at Unruly Heroes, a gorgeous game using Playmaker for rapid prototyping:

    https://unity.com/madewith/unruly-heroes
    "Each of the teams is familiar with Playmaker to aid prototyping, and can build new gameplay scenarios quickly. In fact, they were able to create a PVP mode (a feature they’re proud to include for local and online play) for the game without needing to solicit their programming team."
     
  25. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  26. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  27. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Reminder: Make sure to update and install the latest version of PlayMaker if you're using Unity 2018.3!
     
    Last edited: Dec 19, 2018
  28. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  29. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  30. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Lars-Steenhoff likes this.
  31. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  32. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  33. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  34. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  35. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  36. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Jump start your projects with these great PlayMaker Kits on the Asset Store!
     
  37. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Check out Combat Core an explosive sci-fi arena brawler #MadeWithPlaymaker

    "As a designer and artist without strong coding skills, with Playmaker I’m able to bring my ideas to life without any limits."
    Micah Betts
     
  38. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    3 out of the 5 Top Nindie Picks for 2018 from Nintendo were #MadeWithPlaymaker!
    Nindies.png
    Check them out - all amazing games!
     
    Last edited: Dec 27, 2018
  39. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  40. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Check out Kid Goblin: Puzzle Crush a cool retro puzzle adventure game #MadeWithPlaymaker by a solo dev:
     
  41. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  42. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
  43. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,984
    Alex-Chouls likes this.
  44. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    magique likes this.
  45. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    TonyLi likes this.
  46. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,229
    ^ Also made with the Dialogue System for Unity, using the Dialogue System's built-in PlayMaker integration. ;) Andrii is an example of a dedicated developer who just keeps making games, each one getting better and better.
     
    Alex-Chouls likes this.
  47. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Cool! Dialog System for Unity is great and very popular with PlayMaker users!
     
    TonyLi likes this.
  48. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Congratulations to Nomada Studio: GRIS has been honoured with Game of the Year nominations from Variety, The Verge, GQ, and Paste Magazine. Experience it for yourself on Nintendo Switch or PC: http://grisgame.com
    GRIS_posters.PNG
    #MadeWithPlaymaker
     
  49. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573
    Cool tutorial on using Unity Events with Playmaker and VRTK:
     
  50. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,573