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

Pages: 1 ... 3 4 [5] 6
61
Share New Actions / Set As Last / First Sibling ( Child )
« on: July 28, 2015, 06:20:39 AM »
Hi,
I made this actions to use and sort child objects in my shop menu.

What is does is set the object as last / first position inside a parent inside your hierarchy

i have not tested this a lot yet so please let me know if it is good or not good.

62
Action Requests / Hash Table Sort
« on: July 28, 2015, 01:18:13 AM »
Hi,
I was looking for a way sort sort my Hash Table and i stumbled upon this topic on StackOverflow

and i think this can be very usefull

63
Playmaker Help / Datamaker (xml) setup
« on: July 08, 2015, 02:07:22 PM »
Hi,

I am trying to figure out how to do this.

i got my xml setup like this :
Code: [Select]
<?xml version="1.0" encoding="ISO-8859-1"?>
<upgrades>
<prefab>
<category>Cat1</category>
<prefabName>Prefab 1</prefabName>
<status>Locked</status>
<required>1</required>
<price>20</price>
</prefab>

<prefab>
<category>Cat1</category>
<prefabName>Prefab 2</prefabName>
<status>Locked</status>
<required>5</required>
<price>50</price>
</prefab>

<prefab>
<category>Cat1</category>
<prefabName>Prefab 3</prefabName>
<status>Locked</status>
<required>10</required>
<price>30</price>
</prefab>

<prefab>
<category>Cat1</category>
<prefabName>Prefab 3</prefabName>
<status>Unlocked</status>
<required>10</required>
<price>25</price>
</prefab>
</upgrades>


and i use the action xml Select Nodes to get the Locked items with this xpath query :
Code: [Select]
//prefab[status="Unlocked"]/prefabName
after this i want to get the prefab names sorted by price.
but i can't figure it out yet.

64
Feature Requests / chat channel
« on: June 23, 2015, 03:50:48 AM »
with 2000+ reviews i think its about time to have i chat channel.

it is very simple to add one to the website.

Register your channel
(it can work without Registering but i think that is not a good idea)
Use a Network that has a webchat (Most IRC networks have a webchat.)
add an iframe.
for example :

Code: [Select]
<iframe src="http://webchat.quakenet.org/?channels=PlayMaker" style="border:0; width:100%; height:450px;"></iframe>
or

Code: [Select]
<iframe src="https://kiwiirc.com/client/irc.quakenet.org/?&theme=cli#PlayMaker" style="border:0; width:100%; height:450px;"></iframe>
i personally like to use the kiwiirc chatbox because it has an extra button @ the bottom right where you can easily send files (pictures, packages, etc..)

there are other chat programs out there but i would prefer an IRC channel because they can be accessed by a standalone program also.  (Mirc for example)

65
hi, i alway have this "lag" the 1st time i use a tween, create prefab or animate on android builds.

i tried some stuff in player settings, like Preload assets
but it did not help.

i do think that the reason is that stuff is not loaded and loads when used the 1st time..

for example : i have 2 HOtweens that will do something when i touch it's object connected.
when i touch object A first it will "lag" and then when i touch object B it works fine.
when i touch object B first that one will "lag" and object A works fine...

after i have touched 1 of the objects, when i touch any object a 2nd time or more all animations work fine
Greetings,

Dino

is there something i am missing in the settings ?


66
Share New Actions / Convert Vector2 to Vector3
« on: June 11, 2015, 08:55:25 AM »
hi, i made an Action to Convert a Vector2 to Vector3 with an option to adjust the Z position

i needed it for something and could not find an action for it.
i don't know if i miss looked.... if not pls confirm so i can ad it to the EcoSystem.

Greetings Dino

67
Playmaker Help / create prefab inside canvas
« on: June 11, 2015, 07:55:07 AM »
hi,
how can i create a prefab as a child of (for example) Canvas

i was first using the canvas text but could not get it to create inside the canvas.

greetings Dino

68
Playmaker Help / more than 10 digits in unity[SOLVED]
« on: June 07, 2015, 08:25:51 AM »
hi,

i have a score system that runs up very fast in later levels
and should have more than 10 digits but unity does not go higher than 10 digits.

the score system works similar like this game : Cookie Clicker

also thing to buy will be deducted from that score. similar from Cookie Clicker

any suggestions are very welcome.

69
Android Help / Check internet Action not working well on android
« on: April 23, 2015, 07:55:35 PM »
Check internet does not seem to work very well on android device :

when i am offline from a fresh restart it gives offline correctly,
then i go online and start the game and it gives online correctly.

but then when i disconnect the internet and start the game again it still gives online as result... i tried editing the url, changed it to my own website, but gives the same result....

greetings,

Dino
Modify message

70
Playmaker Bug Reporting / tool windows disable
« on: March 29, 2015, 04:31:45 PM »
hi,

i accidentally Enabled Tool Windows When Playing
and i found the settings (preferences/General) wich should set it back to normal.
but it does not... thats just the minor part

the major problem now is :

when i play the game and stop at any given time the globals are saved and not set back to their original state....

this messed up loads of globals, i got it all good now...
but i can't get it back to normal.
it still messes up the globals when i play and stop it

using playmaker V 1.7.7.f6
unity3d v 4.6.4f1

friendly greetings,

Dino

71
Share New Actions / Random Int No Repeat
« on: January 27, 2015, 05:06:20 AM »
hi, i have added a option to random int.

you can choose now if the int result can be the same 2x in a row or not.

you can also find this on the EcoSystem

friendly greetings,

Dino

if there is an interest in a no repeat on random float, let me know.

72
Playmaker Help / random int no repeat[SOLVED]
« on: January 26, 2015, 05:18:46 PM »
hi,
i'm making an action request but having a problem.
i have no errors on my action and with the debug log i get the desired result.

BUT when i play i can see that the "Store Result" is changed to none.
I think i'm just to tired atm to see whats wrong but i thought i drop it here :)

here's my code :

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2015. All rights reserved.
// 'inclusiveMax' option added by MaDDoX (@brenoazevedo)
// no repeat option added by DjayDino
/*--- __ECO__ __ACTION__ ---*/

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Math)]
[Tooltip("Sets an Integer Variable to a random value between Min/Max.")]
public class RandomIntNoRepeat : FsmStateAction
{
[RequiredField]
public FsmInt min;
[RequiredField]
public FsmInt max;
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmInt storeResult;
        [Tooltip("Should the Max value be included in the possible results?")]
        public bool inclusiveMax;
public FsmBool noRepeat;

private int randomIndex;
private int lastIndex = -1;

public override void Reset()
{
min = 0;
max = 100;
storeResult = null;
// make default false to not break old behavior.
    inclusiveMax = false;
noRepeat = false;
}

public override void OnEnter()
{
PickRandom();
            Finish();
}

void PickRandom()
{
if (noRepeat.Value)
{
do
{
randomIndex = (inclusiveMax) ?
Random.Range(min.Value, max.Value + 1) :
Random.Range(min.Value, max.Value);
} while ( randomIndex == lastIndex);

lastIndex = randomIndex;
storeResult = randomIndex;

}else
{
randomIndex = (inclusiveMax) ?
Random.Range(min.Value, max.Value + 1) :
Random.Range(min.Value, max.Value);
storeResult = randomIndex;
}
Debug.Log("" +storeResult);
Debug.Log("" +randomIndex);
}
}
}


friendly greetings,

Dino

73
Share New Actions / Easy Save 2 Add int / float
« on: January 23, 2015, 04:04:47 AM »
hi,
i made 2 new "Easy save 2" Action to add an int / float to a ES2 int / float

 they work the same as the Playerprefs add int / float but then for easy save 2

Warning use Easy save 2 only on key moments

these actions might be added later to the easy save 2 default Actions.
if so probably under a different name and these actions can still be used

these action can also be found on the EcoSystem

74
Share New Actions / PlayerPrefs Add Int / Float
« on: January 20, 2015, 12:55:30 PM »
hi,
i made 2 PlayerPrefs Action to add an int / float to a playerprefs int / float

this combines a : pp Get (int/float) / add (int/float) / pp Set (int/float) into 1 action

Warning use PlayerPrefs only on key moments

don't use this like :
adding score every frame or something,
add score on a variable and add to pp for example : end of a level , when player dies etc.

these action can also be found on the EcoSystem


75
Playmaker Help / new action playerprefs add int / float[SOLVED]
« on: January 19, 2015, 04:09:44 AM »
hi,

i made a new action to add an int / float to a playerprefs int / float

so not to have to set 3 actions to do this (pp get int, int add, pp set int)

but i am trying to get it to work for multiple variables (Count)

when played i get Nullreference on line 26

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2015. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("PlayerPrefs")]
[Tooltip("Adds a value to a playerprefs int identified by key.")]
public class PlayerPrefsAddInt : FsmStateAction
{
[CompoundArray("Count", "Key", "Variables")]
[Tooltip("Case sensitive key.")]
public FsmString[] keys;
public FsmInt[] add;
private FsmInt[] ppValue;

public override void Reset()
{
keys = new FsmString[1];
ppValue = new FsmInt[1];
add = new FsmInt[1];
}

public override void OnEnter()
{
for(int i = 0; i<keys.Length;i++)
{
if(!keys[i].IsNone || !keys[i].Value.Equals(""))  ppValue[i].Value = PlayerPrefs.GetInt(keys[i].Value, ppValue[i].IsNone ? 0 : ppValue[i].Value);

ppValue[i].Value += add[i].Value;

PlayerPrefs.SetInt(keys[i].Value, ppValue[i].IsNone ? 0 : ppValue[i].Value);
}
Finish();
}

}
}

it has to do with the ppValue...
i don't have much experience with arrays and i guess somethings is wrong in that direction...

here is the code from the working "single add int to playerprefs" DO NOT USE THIS in your project as this will be changed when i got this working on multiple values (count)
Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2015. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("PlayerPrefs")]
[Tooltip("Adds a value to a playerprefs float identified by key.")]
public class PlayerPrefsAddInt : FsmStateAction
{
[Tooltip("Case sensitive key.")]
public FsmString key;
public FsmInt add;
private FsmInt variables;

public override void Reset()
{
key = "";
variables = new FsmInt();
add = null;
}

public override void OnEnter()
{
if(!key.IsNone || !key.Value.Equals("")) 
variables.Value = PlayerPrefs.GetInt(key.Value, variables.IsNone ? 0 : variables.Value);

variables.Value += add.Value;

PlayerPrefs.SetInt(key.Value, variables.IsNone ? 0 : variables.Value);

Finish();
}

}
}

Pages: 1 ... 3 4 [5] 6