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 - krmko

Pages: [1] 2 3 ... 29
Playmaker Help / Re: Check if a game object has an FSM named "Banana"
« on: November 15, 2017, 09:31:28 AM »
Hmmm, i just checked it out on ecosystem. Ok, i can get an fsm name, but  how will that help me? I'm afk btw so i'm a bit senseless :D

Playmaker Help / Check if a game object has an FSM named "Banana"
« on: November 15, 2017, 07:10:24 AM »
Hi guys,

i have an FSM which is present in some object and in some not (let's call that FSM "Banana"), but every object has an FSM which needs to check if the object has FSM named "Banana" or not on itself so it can continue doing it's stuff.

Any idea on how to do this? I suppose Has Component should do, but i probably got some more stuff to write in the component field since there are few FSM's on that object.

Playmaker Help / Re: Ideas for system improvement
« on: November 15, 2017, 06:34:44 AM »
Great idea, i'll try it out! Thanks!

ah i figured it out  ;D

Hi guys,

need a little help on this one. I need to call a static method from Pool Boss, and i haven't done a lot of things with. Here's the action.

Here's the API

I'm not quite sure what should i enter in method parameters. I tried prefabName, but as a result i get exactly that, "prefabName"  ::)

Here's the method

Code: [Select]
      public static string GetPrefabName(string prefabName) {
            var iParen = prefabName.IndexOf(" (Clone", StringComparison.Ordinal);
            if (iParen > -1) {
                prefabName = prefabName.Substring(0, iParen);

            return prefabName;

Playmaker Help / Re: Ideas for system improvement
« on: November 11, 2017, 12:48:39 PM »
I'm using Pool Boss for pooling and just read the API, there's a getprefabname method that will solve all the string stuff, but i think it can still be much more elegant and not string dependant :)

Playmaker Help / Re: Ideas for system improvement
« on: November 11, 2017, 12:37:20 PM »
You mean when i pick it up, the weapon equipped on ship gets fsm variables from the pickup like name, other components and so on? I don't think it's a bad idea, i just don't have an idea how to handle the upgrade mechanics other then comparing the name of the pickup.

Would i get into a problem if i rename the clones to their original names on spawn? Can two same named object exist in the same scene at all anyway?

Edit: i just read that they can, i just need to check if there will be trouble on despawning.

Work In Progress... / Re: Erebus : Shmup
« on: November 11, 2017, 04:53:40 AM »
Keyboard :)

Work In Progress... / Re: Erebus : Shmup
« on: November 11, 2017, 12:01:59 AM »
Ok, i played until the end of level, here's my notes :)

1. Ship movement is frustratingly slow. It takes a while for it to speed up, it kinda feels heavy. Compared to the enemy bullets, it's hard to avoid them even if you're skillful.

2. Needs "Restart Button", i don't want to go to main menu to start again.

3. Fonts in main menu are blurry, use textmesh pro

4. Enemy bullets are too small and don't have enough contrast compared to background

5. Pickups should be more distinct, i don't know what i'm picking up, and when i pick it up, if it's not a weapon i have to look at hud to see if it's speed or life.

That's it for now, more enemies and wave patterns are a must of course :)

My kid's still sleeping so i played without sound.

Playmaker Help / Ideas for system improvement
« on: November 10, 2017, 10:57:52 PM »
Hi guys,

I remade the weapon, firing, bullet and pickup system into something more universal, so i can just copy/paste FSM's to necessary objects and use local variables to do the necessary stuff, but there's an oversight i made and i need a fix. Here's a quick explanation.

I have weapons which names are structured like this:


Since i'm using pooling system, (clone 1), (clone 2) etc. string is appended when the weapon is spawned, so the name are actually like this:

PulseGunWeaponLevel1 (clone 1)
PulseGunWeaponLevel2 (clone 1)
PulseGunWeaponLevel3 (clone 1)
PulseGunWeaponLevel4 (clone 1)
PulseGunWeaponLevel5 (clone 1)

Since there will be no more than a few instances in the scene (certainly not more than nine) it made sense to make the folowing hash tables:

PlayerWeapon Key / PlayerWeapon Value
PulseGunLevel1 (string)/PulseGunLevel 1 (object)

To get the true object name out of a spawned object which contains (clone x) appendix, i get the object name, get name length, convert it into string, use the int operator to subtract the last 10 characters (" (clone_1)"), and the get string left to get the name without the (clone 1) appendix. Then i can use that name to get whatever data i need on that weapon on runtime (display name, weapon type display name for the hud and so on).

While not so complicated and applicable to weapons, it is not applicable to bullets since they appear in more than nine instances (clone 10, for example) on the screen and the whole "subtract last 10 characters" idea falls flat. Sure, i could compare the string length and then subtract last 10 or 11 characters depending on the length, but it it unnecessary complicated.

Djaydino had some ideas, and he was pointing to the problem in time, but i'm not sure how to do it, so any suggestions or step-by-steps are welcome.

Maybe using enums? I haven't used them before though. Can i define an enum so that every pooled clone always has the same name actually so i don't have to mess around with string concatenation, building and truncating?

I'm quite a noob for using xml in game design, but i reckon it would be cool if it could use some sort of nested structure like class inheritance. Something like this:


I suppose you could get data on either runtime or populate some sort of data structure like array or hashtable and then draw data on runtime.

Known Playmaker Issues / Re: Patch for Unity 2017.2 warnings
« on: November 09, 2017, 09:17:08 AM »
I missed this, thanks a lot!

Hi guys,

i just wanted to say i listened to you, i deleted all but most important globals and made about 20 hash tables for storing data and cross referencing. To avoid fiddling with globals, i use Easy Saves 128-bit encryption. So there's really no need for any kind of globals exporter.

I know it can be made more efficiently, with a few xml/json files, but step by step :)

General Discussion / Re: Why Playmaker and not Bolt
« on: November 08, 2017, 09:28:26 AM »
Longer in development, larger community, lots of actions for most popular 3rd party assets.

General Discussion / Re: What's possible with Playmaker
« on: November 08, 2017, 09:25:00 AM »
As far as i can see, there's no limit, you can access and manipulate everything within unity engine and otherwise.

Pages: [1] 2 3 ... 29