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.


Topics - westingtyler

Pages: [1] 2 3 ... 5
1
Action Requests / get names of levels in the build?
« on: September 15, 2017, 01:27:37 AM »
Hello. I want to find key game objects in the main hub level, that are named after the levels in the build, and position them on a tool shelf or hide them based on whether you've found them yet or not.

i store each key's progression in an int variable in a text file using EZ Save 2.

so my fsm needs to be like:

get amount of levels in the build
find build level X
get name of it
retrieve the int named that
check if it's 0 or 1
if it's 1, put it on the shelf. if it's 0, hide the key somewhere or destroy it.
loop.
if you're above the number of levels in the build, stop. else:
find build level X+1
get name of it.
etc.

i can "get last loaded level" but that doesn't get me the levels listed in the build settings.

2
Action Requests / Letter to Int to String?[SOLVED]
« on: September 14, 2017, 03:35:03 AM »
Hello. I want to have random-seeming numbers appear on a display when you use a level key to "orient the sensors" to point at the new level to load.

What I really want to do is take the level name, auto convert its first five letters to integers, and display that, so it's not random each time, and each level has a unique one.

Basically, you'll be able to input these numbers as passwords even in a brand new game to go to any level at any time, and they'll always display the same when you use a key.

for example:

you used the "secret lab" key on the keyhole?

s=19
e=5
c=3
r=18
e=5
t=20
new coordinates to display: 195.318.520

a letter to int action would save a lot of time. a letter to int to string action (convert 1 letter to a string after first converting it to an int) would save even another step.

3
Playmaker Help / Create Object (from Prefab) increases draw calls?
« on: August 28, 2017, 02:00:02 PM »
Hello! In my game you can tunnel through the world by clicking on stone walls. Each wall block is a prefab, and when you click it, it destroys itself, creates a floor in its place, and creates new wall prefabs around that new floor tile.

using the Create Object action in playmaker, adds draw calls every time I do this, so i can't mine very much until there are hundreds or thousands of draw calls.

But all the walls use the same material and should not be adding draw calls.

Their geometry is simple squares, and they use the same material.

I wonder if it's because the Creat Object action uses the wrong terminology inside it?

from the unity help: Material Access: Be careful when accessing Renderer.material. This will duplicate the material and give you back the copy, which will opt that object out of batching consideration (as its material pointer is now unique). Use Renderer.sharedMaterial.

Could all these new draw calls be due to the action accessing Renderer.material instead of using Renderer.sharedMaterial?

If this turns out to be the case, I'll request a version of the action that uses the one that doesn't increase draw calls.

4
my player is tunneling block by block.

when my player clicks on the wall's box collider, I need to check the 4 box collider triggers around the wall to see which one the player is standing in (so i don't build an unnecessary wall IN the player.) I'll also check the box colliders around the wall clicked, to see if those invisible colliders are in another wall already, or if a wall NEEDS to be created there. this will ensure new walls are generated ONLY where there is empty space.

Basically, it's a tunneling system like in Dungeon Keeper, using rectangular walls with no up or down tunneling.

I can't just 'get collision info', because a rat might have run onto that area after the player moved into it, and it would then test the rat to see if it's the player standing there and say no, and make a wall in the player's face.

so I need to be able to check the names of objects standing in the collider trigger, to see if one is the player.
what is the best way to do this? does it need a new action?

5
Every mecanim tutorial I see involves scripting for this stuff, but I just want a playmaker action that's like "turn head to face player".

look at can work for the eyes if they are independent models, but I am talking about something that affects the mecanim bones.

I also want to be able to say "the object the player is holding is desired by the npc, so reach the npc's hand up and follow the object.

this is something about inverse kinematics or something. I just don't know how to do this in playmaker.

it's the same, I think, as making npc arms touch walls instead of going through them, if close enough.

does anyone have any leads about how to do this with playmaker? I need to make a mecanim npc's face and hands follow a game object as it moves around the scene.

I hope I'm being clear enough about the problem.

6
This would be useful for having objects float in wavy water (which uses a vertex displacement shader) or for putting bullet holes actually on objects rather than on their box colliders.

7
Basically, I need to dynamically generator some dialogue strings, and if it ends up being over four lines, I need to trim off the remainder and put it on a second, third, fourth, or fifth dialogue page. (and save them all so they can be flipped through like pages.)

I'm using a word-wrapped TextMeshPro game object, and we don't want dialogue text falling out the side of the box.

Can we get an action to test if it's being cut off, or to test the number of lines in the string.

There is a super janky way to do this by estimating the max characters in four lines, and trimming everything after, but that doesn't guarantee the pages of text won't be too long or short. We need to check the string on an individual basis.

8
playmaker 1.8.3
unity 5.4.1f1 (p or f?)
windows 10 64 bit

I submitted a bug report, but now I know how to reliably reproduce this.

Any fsm viewed during play mode ticks all its events to global, and they remain ticked after exiting play mode. For real, I have watched the program tick them all upon launching play mode, while already viewing the events tab. Obnoxious to have to go through and untick them every time, and probably not great for performance to have a million "1 through 18" events as global events. also, will it affect performance?

What gives? is it a bug or some setting?

9
Is there a way to do this in playmaker? I want to be able to play audio tapes in my game, pause them, and restart them from the saved point, and optionally set a loop point, like for a song with a start but no end.


10
Can we please have a feature in playmaker to make reading large fsms (pictured fsm is tiny) easier, by being able to do something like in the picture, where we can make colored lines around sections of an fsm to create fsm regions, possibly with large title states that have large fonts? this would be super helpful in making larger fsm's readable. Or just colored background shapes to put behind a section of states?

Having to do all this currently by using a bunch of state transitions in empty states like in the picture is lame-o.

I label sections of actions with an empty header state like ====backpack processing==== and color it purple, but this all seems silly and wasteful or something and doesn't stand out much, being the same size text as every other state title.

pretty please.

11
I think i've finally pinpointed it.

Any FSM, even within disconnected prefabs (since editing "applied" prefabs is just hellishly slow) editing, especially adding or deleting actions or states, gets super sluggish, making me wait 5 seconds between each addition or deletion, after opening Actions library for first time, after each time I launch Unity. It doesn't matter if it's a tiny or large FSM, new or old.

after learning this, now I know I should copy and paste a bunch of empty states in an FSM and name and arrange them BEFORE adding any actions, to make it work way faster. It's just as fast if I open the action library, add actions, save, exit unity, and come back in, and edit the fsm. as long as I don't do that initial opening of the action library, everything is speedy. are there any basic tips I am missing about this?

Before today I didn't understand why sometimes fsms would add and delete states and actions quickly sometimes, and mind-numbingly slow other times, but now I THINK I can control it, but I am hoping someone can fix it permanently with some simple setting or something.

Actually opening the action library takes like 6 seconds to open. it's blank, I type what I am searching for (although the letters don't appear), then 6 seconds later it types it into the search bar and loads all the actions.

Windows 10 64 bit. Playmaker 1.8.3. Unity 5.4.1p1
My project is 40 gigs, if that makes a difference. The final prepared exe is 1.4 gigs.

12
Set Position gives me vectors, but why doesn't it give me a game object option? I want to move a cursor to another slot in the inventory, and it seems silly to have to manually get position of that slot then set position each time when a single action should do all that. Does this already exist?

13
Rather than adding a thousand loops and get parent and check tag commands, it would be great to have this. So when I shoot someone's hand, it can go up the chain and find out the name of the person it belongs to, for instance.

14
If the state didn't contain the transition event I created in the string switch, there used to be a control-clickable option to auto add the new transition event to the current event, to save time. then one day this went away, meaning I now have to create them and manually add each one again, which is tedious. why did this go away? what setting changed? I'm using 1.8.3.

EDIT: solved by going to preferences > error checking > enable real-time error checking.

saves a LOT of time. would be great if there was an option "auto create and add transition event named after switch entries.

15
Playmaker Help / Move Mouse to Rotate Examined Item?
« on: March 06, 2017, 09:25:05 AM »
You pick up an item, hold it up to your face, then moving the mouse around the screen rotates the item for closer examination.

How do we do this in Playmaker? Is there a way to do this WHILE having the mouse locked to the screen so it doesn't mouse out of the window while examining?


Pages: [1] 2 3 ... 5