playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LordHorusNL

Pages: 1 [2] 3 4 ... 7
16
Playmaker Help / Re: State finishes before all actions are executed.
« on: December 14, 2017, 06:55:51 AM »
Indeed if all your bullets are locally instantiated there really is no need for the RPC.

Glad you got it to work.

17
Playmaker Help / Re: State finishes before all actions are executed.
« on: December 14, 2017, 06:19:55 AM »
In your spell manager "RPC Spell Fireball" when you shoot in rapid succession is the reference to your bullet not being overwritten? Like this:

Shoot bullet 1
Shoot bullet 2
Bullet 1 hits
Destroys bullet 2 because your bullet reference has changed to bullet 2 in your spell manager.

18
Playmaker Help / Re: State finishes before all actions are executed.
« on: December 14, 2017, 06:01:18 AM »
With the action names changed it's difficult to see what you are doing, however i get the feeling that the problem is your Health Manager.

After you send the Update Health Event, does the Health Manager try and get a variable from the Bullet perhaps?

Or do you have a set dammage amount already in your Health Manager?

If the Fsm moves to the next state, the send event must have fired so the problem  might be on the receiving end.

19
Hi jean

Run Template FSM is very handy because it allows me to choose the template to run as a variable (so i can change it on the fly)

What i think is happening is that the action somehow does not finish the template properly when running the "Finish FSM" action inside itself.

I think this is happening because the stutter i get from using this action seems to be cumulative, in that it gets progressively worse the more you use it.

However this is just from observation!

So if the action can be fixed, or replaced with a "Run FSM" variant that lets the user define the template as a variable. That would be great.

I was going to look into that myself today.

20
Playmaker Bug Reporting / Re: Run FSM Stutter (Garbage Collection?)
« on: December 13, 2017, 04:26:33 PM »
Okey found the culprate! i was using one "Run Template FSM" from the ecosystem.

For some reason it does not seem to finish the templates but keeps them active, so not a playmaker bug afterall.

I'll see if this actions can be updated by the author.

21
Playmaker Bug Reporting / Run FSM Stutter (Garbage Collection?)
« on: December 13, 2017, 09:26:26 AM »
I'm having some performance problems when using the Run FSM action as part of my VR system to interact with objects.

After using Run FSM/Finish FSM about a 100 times my game starts to stutter and becomes unplayable.

This does not happen when i remove the Run FSM actions and replace the templates with normal Fsm's.

This feels like a garbage collection problem of some sorts, are the template Fsm's actually being unloaded from memory when running Finish Fsm?

22
Playmaker Help / Re: How to find multiples objects.
« on: December 13, 2017, 08:49:12 AM »
Pooling is really easy, try the free pooling actions on the ecosystem before buying Pooly.

You can still do what you want without pooling offcourse, however pooling is always the smart thing to do when spawning many object like this.

23
Playmaker Help / Re: How to find multiples objects.
« on: December 13, 2017, 08:19:45 AM »
There are plenty of ways to do this, i use Pooly for stuff like this but there are also some great pooling actions on the ecosystem and you always want to use pooling when dealing with bullets.

In the Fsm where you fire/spawn your bullet just save a reference to it and store that reference into an array with a max lenght of about 10, that way you can always get the last 10 bullets fired and do a "for each" loop to destroy/despawn them.

(There are some great video's on youtube for learing arrays)

Alternatively you could also parent the bullets to a "Holder" object when spawning them and then use get child/get all children on that parent object.

But the first option would be the most logical thing to do.

Hope that helps

24
Playmaker Help / Re: Opposite to "don't destroy on load"?
« on: December 13, 2017, 07:52:23 AM »

I get the feeling that you are the creator of this manager? Is there anywhere I can read on more how this thing works?

No not the author, that would be jeanfabre i believe.

I have never used the singleton manager myself, however what i understand is that you need a singleton manager (with a unique reference name) and a don't destroy on load in a Fsm on your scoreboard in every scene.

Offcourse the singleton reference name has to be the same on both scoreboards!

This way if the scoreboard already exists, the scoreboard in the new level gets destroyed and the old one stays in use.

Then you'll have to figure out how to communicate with the old scoreboard in the new level, you would probably want to do this with global events.

I believe that should work, but somebody else would have to confirm this.

25
Playmaker Help / Re: Opposite to "don't destroy on load"?
« on: December 12, 2017, 04:30:20 AM »
Search the ecosystem for the "Singleton" action/manager, i believe this is what you're after.

There should also be some topics on this matter i believe.

26
Playmaker Help / Re: Setting up VR Door with hinges to follow hand
« on: November 22, 2017, 02:15:13 PM »
Good to hear!

VRTK will do just fine for most games.

27
Playmaker Help / Re: Setting up VR Door with hinges to follow hand
« on: November 22, 2017, 09:37:53 AM »
Hi there ToxicFrog.

Most people here will advise you to try VRTK with the Playmaker actions, however i had some problems with VRTK so i dicided to make my own full physics driven interaction system.

So if you just want to use Playmaker, this is what you'll want to do. (there are other ways but this works the best with physics)

Make sure your hands/controllers have a rigidbody on them with gravity/kinematic set to off.

Then integrate the following actions in your door/interactons script to make the door follow the hand/controller.

  • Get Position: of your controller in world space and save the Vector3
  • Get Position: of your door handle in world space and save the Vector3
  • Vector3 Operator: Subtract your ControllerPosition from your HandlePosition and save as Vector3
  • Vector3 Multiply: Multiply that Vector3 with a float (lets say 50/this will control the speed at which the door follows the controller)
  • Set Velocity: On your door/rigidbody in world space using the Vector3 you just made.
(Check Every Frame on all actions)

That should work depending on how your interaction Fsm is setup.

If you have any problems with that just let me know.

28
Playmaker Help / Re: Make guards have light censor
« on: November 11, 2017, 07:10:35 PM »
Will these actions be shared when you are done? Looks good ;)

29
Action Requests / Re: Quaternion get Angle/Axis
« on: November 10, 2017, 05:39:32 AM »
*Edit*

Nevermind this request Jean

I've managed to make the action myself and i will update this post with the file after i've cleaned it up a little.

The action will now retrieve the angle and axis from a target quaternion.

Yippie ;D

30
Playmaker Help / Re: Hi i am noob in Unity and PlayMaker
« on: November 09, 2017, 01:40:21 PM »
Why would you need to open the PlayMakerFSM script in Visual Studio?

Just use the state machines to make what you want.

You can open the PlayMaker actions if you want to learn how they work.


Pages: 1 [2] 3 4 ... 7