Playmaker Forum

Playmaker Help & Tips => Playmaker Tutorials => Topic started by: sebaslive on March 10, 2015, 05:56:15 PM

Title: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on March 10, 2015, 05:56:15 PM
unofficial Arraymaker Tutorials!

*Each lesson should come with the package used in the tutorials (only for Unity 5)

Come with me as we journey into the world of Arraymaker! In this first tutorial we are going to look at two actions in Arraymaker, how we can use them in common practice and what to look for in Arrays.

To get the arraymaker package:
https://hutonggames.fogbugz.com/?W715 (https://hutonggames.fogbugz.com/?W715)

Tutorial 1: Getting to know Arraymaker Array list get next and Array list Add.

Tutorial 1: Intro to Arrays as well as Array Get next/Array Add:
https://www.youtube.com/watch?v=6SBuH1vxC7A&feature=youtu.be (https://www.youtube.com/watch?v=6SBuH1vxC7A&feature=youtu.be)

Tutorial 2: Getting to know Arraymaker Array list Reverse/Sort and Array list Clear.

Tutorial 2 requires Playmaker Ugui package:
https://hutonggames.fogbugz.com/?W1192 (https://hutonggames.fogbugz.com/?W1192)

Tutorial 2: Making a Highscore with Reverse/Sort/Clear*
https://www.youtube.com/watch?v=qHPPSgGIk1U&feature=youtu.be (https://www.youtube.com/watch?v=qHPPSgGIk1U&feature=youtu.be)

*Requires UGUI package and Arraymaker Samples Package.

Tutorial 3: Getting to know Arraymaker Array list Remove At and Array list Count.

Tutorial 3: Making a SimonSays with RemoveAt/Count
https://www.youtube.com/watch?v=1p4EmgKqehU&feature=youtu.be (https://www.youtube.com/watch?v=1p4EmgKqehU&feature=youtu.be)

Tutorial 4: Arraymaker FIRST LOOK
https://youtu.be/X8rUuZDjS3Y (https://youtu.be/X8rUuZDjS3Y)
This is a beginner look into arrays and hash tables, so if you are new to arraymaker, start with this video.

Tutorial 5: Arraymaker Easy Save 2
https://www.youtube.com/watch?v=2WhnfayfDtg (https://www.youtube.com/watch?v=2WhnfayfDtg)
We look at using EasySave 2 and arraymaker.

*This requires the EasySave 2 asset which does not come with playmaker.

Tutorial 6: Guest Tutorial by djaydino Highscore with name
https://www.youtube.com/watch?v=PFOH0Agtji0 (https://www.youtube.com/watch?v=PFOH0Agtji0)
Here is the link the forum page which contains the package.
http://hutonggames.com/playmakerforum/index.php?topic=10906.0 (http://hutonggames.com/playmakerforum/index.php?topic=10906.0)

If you have any questions on this or any specific action you would like to see please let me know!
Title: Re: ArrayMaker Tutorials for All!
Post by: jeanfabre on March 10, 2015, 10:47:43 PM
Hi,

 Ah Man!! thanks for this. This is great that you took the time to do this tutorial, kudos!

 Good luck with this! I'll reference it in the ArrayMaker wiki page ( later, I need to update so many packages for u5 including arrayMaker actually...)

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All!
Post by: coffeeANDsoda on March 11, 2015, 12:52:57 AM
Does your scene work in pre unity 5 projects? Or would it be best just to watch your youtube tutorial.
Title: Re: ArrayMaker Tutorials for All!
Post by: sebaslive on March 11, 2015, 04:10:16 AM
@jean thanks very much Jean, I hope it helps!

@coffeeAndSoda hey, I am not too sure because I haven't tested that before but I can let you know later today. Edit: just checked and it did not open in unity 4.6 sorry.
Title: Re: ArrayMaker Tutorials for All!
Post by: coffeeANDsoda on March 11, 2015, 11:51:05 AM

@coffeeAndSoda hey, I am not too sure because I haven't tested that before but I can let you know later today. Edit: just checked and it did not open in unity 4.6 sorry.

Then I'll stick with the video tutorial, if it each of the actions works with the version I use.
Title: Re: ArrayMaker Tutorials for All!
Post by: jeanfabre on March 11, 2015, 12:18:54 PM
Hi,
 
Yes, ArrayMaker works the same on all Unity versions, so you can safely follow this video and the technic used.

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All!
Post by: Lane on March 11, 2015, 01:12:33 PM
Cool! I put this in the User Tutorials Playlist on our channel. :)
Title: Re: ArrayMaker Tutorials for All!
Post by: djaydino on March 12, 2015, 11:41:17 PM
Nice tutorial !

love to see more soon.

Greetings,

Dino
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on March 18, 2015, 04:10:10 PM
The second tutorial is up looking at 3 arraymaker actions Reverse, sort and clear.

The package requires ugui assets!!

Enjoy
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: djaydino on March 18, 2015, 11:41:23 PM
great tuts

maybe a nice idea is to make something like a simon says example?

just an idea :)

friendly greetings,
Dino
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on March 19, 2015, 04:11:02 AM
Nice, i will put it on the list. Thanks for the suggestion.
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: Saputo on March 19, 2015, 10:41:35 AM
Could you make a TUT on a Final Fantasy type inventory, Were it just shows the Items Name and how many you have, If you don't have That item, it removes it from the list, and rearranges the items in order.
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on March 19, 2015, 12:44:13 PM
okay, I'll see what I can cook up.
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: cloud03 on March 19, 2015, 05:53:00 PM
Great tutorials! no doubt it will be a lot of help for people getting started with Arraymaker...
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on March 19, 2015, 06:07:31 PM
Thanks! I hope so, since this is such a great tool for any game that can get more complex
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: oddbody on March 24, 2015, 05:38:41 PM
Hi,

Thanks for making these tutorials.  I think I'm finally getting my head round using arraymaker.  I'm using the unity packages you've attached, but the second one seems incomplete.  I've gotten most of it to work, but some parts I just can't get to work.  Could you update the file to get it to work like in the video?

thanks,

oddbody
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on March 24, 2015, 06:08:01 PM
Oh, I am going to have to remake the file because I accidentally deleted my whole project file earlier...

I will get back to this soon!
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: TheBadFeeling on March 30, 2015, 12:39:01 PM
Nice tutorials! I love ArrayMaker, it just makes keeping track of stuff in Playmaker so much easier. Sure could've used these tuts when getting started, but hopefully they'll help someone else appreciate the flexibilily of arrays.  8)
Good job mate!

/Bad
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: coffeeANDsoda on March 31, 2015, 09:10:22 PM
Keep the tutorials coming.
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on April 01, 2015, 08:13:24 AM
Hey All, thanks for the support and know that I am still working on these, so, keep those suggestions coming!

I also just redid and updated the second package since it was incomplete. (I had a bad stroke of luck and accidently hit ctrl+D and deleted my entire unity folder instead of duplicating it... much deserved)
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: Flying Robot on April 02, 2015, 02:21:26 AM
Use dropbox.
Title: Re: ArrayMaker Tutorials for All! (2nd UP!)
Post by: sebaslive on April 02, 2015, 05:18:09 AM
I might get dropbox again, I have been using google drive.

Edit: Third tutorial is up! Along with the game package used to Create it.

It is a spinoff of Jeans Simon says package which is included in the samples of the array maker package.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Strail on April 03, 2015, 06:58:39 AM
Thanks for taking the time to do these
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 03, 2015, 07:31:53 AM
No problem! It is an awesome feature that can be a little bit daunting at first but really worth getting into.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: gamedivision on April 12, 2015, 02:32:01 AM
Great set of tutorials thank you
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 24, 2015, 01:19:22 PM
Going back to the drawing board with this playmaker add-on, I was brainstorming ideas about how to set up a puzzle relying on a pattern or certain order of turning on switches while making the player feel restricted based upon limited space.

(https://dl.dropboxusercontent.com/u/75323608/array%20objects%20aren%27t%20prefabs.png)

Also, I'd like to know whether or not this can be done without turning all three of the trigger switches into prefabs?
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 24, 2015, 01:31:57 PM
You can use 3 different tags and place on each one and have a manager that checks if the player has triggered the right tag or not. I have done this puzzle without arrays but you could use arrays if you placed the three objects into a manager proxy and used the get next to check each one like that.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 24, 2015, 02:00:16 PM
You can use 3 different tags and place on each one and have a manager that checks if the player has triggered the right tag or not. I have done this puzzle without arrays but you could use arrays if you placed the three objects into a manager proxy and used the get next to check each one like that.

So with this method I could set up a puzzle based which trigger you enable first?

Since it would be in like first second third, and these switches are placed in different positions, so if the player collides with the first platform near "trigger platform event" (like in the screenshot), it wont work.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 24, 2015, 02:10:43 PM
Not sure I follow, but to be more clear, you have a manager with the three platforms as children. This manager has an FSM that is waiting for the right order. The order is set up by the platforms triggers, the first state will have three trigger events for the three platforms and if the player triggers the right one you send event to the next one and in the next state if the player triggers the wrong one you send an event back to the last state.

ALSO, please check out the third video I made with the simon says and that will basically give you another idea of doing it in arraymaker.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 24, 2015, 02:17:03 PM
The player can't use any switch in order to solve the puzzle. So the player has to collide with each switch in order. Like in the screenshot. 

For example, the puzzle doesn't respond if you touch/collide the second switch, you have to first jump over the second switch in order to collide with the first switch.

That is why I said first, second, third. So the first switch on top, the second switch to the left of the trigger puzzle event cube, and third to the lower left of the first switch.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 24, 2015, 02:21:31 PM
Yep, what I mentioned should still work. If it's too confusing just only place one trigger event at each state for the right order.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 24, 2015, 03:46:02 PM
So when I created a manager with a array list proxy script, don't I just use a array action to set up a total of three objects with array list add? Because when I looked at the simon says tutorial, it seems like it for randomly generated patterns. Not one pre-made pattern. Like one sequence or pattern that's the same each time you play it.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 25, 2015, 04:45:26 PM
Yep just alter the first couple of steps to make it your own sequence instead of it being random. You will have to pay around with it a bit
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 25, 2015, 08:44:40 PM
Yep just alter the first couple of steps to make it your own sequence instead of it being random. You will have to pay around with it a bit

If it's too confusing just only place one trigger event at each state for the right order.

In terms of having the triggers set up for each platform/step, what would that mean for data? Doesn't seem that the simon says tutorial mentions the FSM's for each button.

Assuming that it's the standard Trigger event>send event to manager for each? Having a difficult time wrapping my head around creating a pre made sequence for the manager.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: keitaro3660 on April 26, 2015, 02:39:36 PM
hello, i'm really grateful for you to create this tutorial.
i'm so new to this array and hash table thing..

anyway, i have question :

is there a "Check highest Value" feature in Hash Table?
example of my current hash table

keyName1 = 20
keyName2 = 1
keyName3 = 40

2 question for this :

1. any idea how i can take my "keyName3" (because it has the biggest value) and store "that key name that has biggest value" to [string value]?
2. for hash table problem solving, is there usually only use hash table or use array too?
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 26, 2015, 03:53:11 PM
Coffee try the three different tags that I mentioned earlier for the order. You don't necessarily need array for this but you could if you want to.

keitaro, I would have to check but if the same spots exist for hash then I'm sure you could do the same system as fine in the high score video. But I would have to check with hash.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: keitaro3660 on April 26, 2015, 06:12:45 PM
Coffee try the three different tags that I mentioned earlier for the order. You don't necessarily need array for this but you could if you want to.

keitaro, I would have to check but if the same spots exist for hash then I'm sure you could do the same system as fine in the high score video. But I would have to check with hash.
okay thank you :)
please check it, there's no playmaker hash table tutorial at all :)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on April 26, 2015, 08:46:31 PM
try the three different tags that I mentioned earlier for the order. You don't necessarily need array for this but you could if you want to.

I forget, that would be 3 trigger events for the starting state? What would the method be again for checking tags? Game Object Compare tag for each switch? And if the player gets it wrong, on trigger exit? Or another way to fully reset the manager and switch fsms?
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 27, 2015, 03:48:19 AM
Coffee, yes, it checks tag and if wrong it send the player back to the the starting state to reset.  I used this method in my "too many doors" game when the player had to choose the right order of rooms.

Keitaro, hashtables would be a good tutorial to do. I'll see what I can cook up.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on April 28, 2015, 05:58:16 AM

hello 

i was wondering if you could make a very simple tutorial for beginners, something like : "my first array with Arraymaker" kind of tutorial .. built from scratch.
i have never used arrays before and i am sure i am not the only one :)

Anyways, many thanks for taking the time to make these videos, they will be very helpfull once i have covered the basics.
Thanks again!
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 28, 2015, 06:07:46 AM
Hi Flora, I was hoping that my first video is that introduction to arrays that may help. I, like others I know, learn best from applying the methods in practice into a little mini game to see how the actions are useful which is what I was attempting to do in these videos.

If after the first video there is still some confusion then, please, let me know so I can try something a bit more in-depth. Thanks
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on April 28, 2015, 06:26:41 AM

hey  :)

It is all the premades FSMs that make it very confusing for me to follow in the videos ...  this is why i was hoping for a simple example built from an empty scene.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on April 28, 2015, 07:37:42 AM
I see, okay. I have been meaning to do a tutorial with an introduction to hash as well so I will mix the two in an introductory video.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on April 28, 2015, 08:25:18 AM

Great !

Thank you for your help, it is very much appreciated  :)
my apologies for the extra work.

Have a good day !

Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: jeanfabre on May 14, 2015, 01:55:07 AM
Hi,

 Ok, could you make a playlist for your ArrayMaker tuts? then I'll use that playlist link when advertising about your work. for example on the ecosystem, I can show a youtube play button and so I could link to the playlist directly.

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 03:37:20 AM
Quote
unofficial Arraymaker Tutorials!

*Each lesson should come with the package used in the tutorials (only for Unity 5)

Hi!

I have been looking for tutorials on Arraymaker for a very long time, so thank you.
But I got a problem. I start to understand how Arraymaker works, but you only explain the Array Actions. Sometimes I don't know what you have in the other States. But the tutorial videoes and the tutorial packages would be great.

But this packages is only for Unity 5? I haven't download Unity 5 yet. Is it safe to download it? Is it working without any problems? Of course I'm going to take backup of all my game prototypes. :)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 04:38:55 AM
Hi Jean, thanks I will have a playlist done shortly.

Hi Rabagast, I have submitted games on unity 5 and everything is mostly running fine.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 04:44:25 AM
Here is a link to the playlist:

https://www.youtube.com/watch?v=6SBuH1vxC7A&list=PL1EwQda_5HM_n8MEaBGfcXLNpmL8qBqV1
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 09:01:38 AM
Quote
Hi Rabagast, I have submitted games on unity 5 and everything is mostly running fine.

Hi!
Thanks! I downloaded Unity 5. Everything is working so far. I haven't tried my game prototypes yet.

One question:
In the High Score example, "ResetScore button" and NewScore button", is it a script it can't find. What script is it?
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 09:04:03 AM
its using unitys ui system and playmaker ui actions, make sure you download and import those.

It has the link above the tutorial for the ui actions.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 09:33:02 AM
Thank you!

Another question:
If I want to have more than 3 high score lines. For example 10.
Then I probably can't use Int Compare. How can I do this?
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 09:46:08 AM
I would probably have to change up the logic a bit, (not at my main computer right now to see) but maybe this action may help you out.

http://hutonggames.com/playmakerforum/index.php?topic=2286.0

Let me know if you have success because I am sure it will help others!
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 10:06:19 AM
Hi!
"Int Equals" can be very useful, but I'm not sure if it can be used in this example.

When you have time, can you also look at it? I will experiment a bit, but I'm very new to Arraymaker and creating a High Score board.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 10:50:52 AM
Look at int compare. It is comparing the currentIndex_int to 1.

First understand that it is comparing the number in the index in arraymaker to a number I set. The int compare is checking the current index in the array and then placing it in the proper order by checking if its less than 1 then its 0 so set in First, index equal to 1 will be set in Second and index 2 is greater than 1, which is set in Third. Once you understand that it is easy to know the next step.

One way of doing it is by making 10 int compares with 10 events. It compares the currentIndex_int to 1 and if equal sends the 1 event. In the second int compare it compares the index to 2 and if equal it sends the 2 event. Etc until you have ten. That will let you go to ten.

Also, please keep in mind that these are just examples to teach Arraymaker to get a better understanding of that tool and know that there are many more complex ways to do these examples. For instance, I would create a new array to do all the int compare for me and set it in the proper place slot which may be a bit more work but will allow me to set the highscore to 1000 and not have to set 1000 events. That is the power of arrays. I plan on doing more beginner videos when arraymaker/hashtable is updated (to stick with unity 5) and then delve into more complex videos if people still wish to watch them  :P
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 11:33:43 AM
Thank you! I will experiment more. I'm sure many people want to watch more tutorials. Just keep up the good work. :)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: coffeeANDsoda on May 14, 2015, 12:36:06 PM
How would arraymaker work in terms of having the player respawn in a area at similar spots when colliding with a obstacle? Because I'm really having a problem getting the player to respawn at the right place for my game.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 14, 2015, 12:38:27 PM
Jean included samples to Arraymaker, look for the checkpoint example.
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 14, 2015, 11:29:40 PM
Quote
One way of doing it is by making 10 int compares with 10 events. It compares the currentIndex_int to 1 and if equal sends the 1 event. In the second int compare it compares the index to 2 and if equal it sends the 2 event. Etc until you have ten. That will let you go to ten.

Hi!
I tried this and it works very well. Of course as you said, it's not the best way to do it. If you have a big high score table with over 100 rows or 1000, then it's not the best way. But in my case, I have 10. And one other things which can be a problem if you have a lot of rows, can be that, everytime you get a new highscore, the highscore manager go through all the events, so it you have 1000, it takes time. :)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 18, 2015, 11:19:35 AM
Hi!
If I should be able to write my own name to the high score list, how can I do that? Should I use UI Input Field?

Some later tutorials, I hope you can add this to your list of tutorials you are going to make. More advance High score list with many rows where you also are able to write your name there. :-)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 18, 2015, 11:39:10 AM
That is where I may start, with a UI input field. I have personally never created a score system for any of my games but I would look into the input field and just creating a blank string box next to each score to add.

I may look into creating an advanced version but please keep in mind that this is meant to be more about looking into arrays with different examples on how to use them. Either way, thanks for the suggestion and checking out the tutorials!
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on May 19, 2015, 03:57:03 AM

hello  :)

any news/update with the hash table bug ?

have a good day
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: jeanfabre on May 19, 2015, 05:28:57 AM
Hi,

 can you reference the bug you are mentionning? I'll have a look, maybe I was supposed to look at this?

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on May 19, 2015, 05:48:30 AM

bonjour jean  :)

i was talking about this thread :
http://hutonggames.com/playmakerforum/index.php?topic=10292.msg48608#msg48608

i asked here , because the tutorial is on hold until the glitch is fixed ...
This is a very much needed tutorial for me, so thank you for noticing and trying to help!
No hurry tho .. i am pretty sure you must be quite busy as it is.

have a good day
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: jeanfabre on May 21, 2015, 03:53:27 AM
Salut :)

 Thanks for the reminder, I forgot about this, when I tested it was working and then got carried away with other stuff.

I'll post on that thread.

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: flora on May 21, 2015, 04:09:28 AM

super !

thank you  :)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: Rabagast on May 21, 2015, 01:17:07 PM
I have a question to sebaslive or/and jeanfabre.

I created a new topic about ArrayMaker. Need some experthelp.
Here is the link:

http://hutonggames.com/playmakerforum/index.php?topic=10383.0 (http://hutonggames.com/playmakerforum/index.php?topic=10383.0)
Title: Re: ArrayMaker Tutorials for All! (3rd UP!)
Post by: sebaslive on May 21, 2015, 01:32:25 PM
Responded!
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on May 22, 2015, 02:55:53 PM
Based on the request for hash tables and a more in-depth look into arrays, in this 4th video we look all the features in arraymaker and how we can use them.

Note: There is one feature about get data info that was left out and will be discussed in a future video when the script is updated.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: flora on May 23, 2015, 11:41:32 AM

thanks for the 4th tutorial .. it is exactly what i was looking for  :)

have a good day !

Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: dudebxl on May 25, 2015, 07:26:05 AM
Thx a lot for this.. I actually learned something from your latest video. The array event system is new to me, always wanted to try but never got around to it... I hope they link your videos to the main playmaker tutorials for all us noobs..  :D
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 25, 2015, 12:35:51 PM
Great video!

Just a question:
If I have 3 keys. A blue, a red and a green key. Blue key is for blue door, red for red door and green for green door. Then I can use a Hash Table as you explained in the tutorial. And it works great, but what do I do if I have many blue keys? I tried that, but it didn't work so well, because when I pick up the first blue key it will be added to the Hash Table, but when I pick up the next blue key, it replace the previous blue key. I know why. It's because I use the same Hash Table key. Is it a way to do this without name the Hash Table keys, Blue Key 1, Blue Key 2, Blue Key 3 etc.

It's not a problem to do this without Array / Hash table.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on May 25, 2015, 11:30:52 PM
Hi,

 you have to think differently here.

 "blue" becomes a property of the door, it's not anymore a distinct property which allows you to identify it, and so you'll have to find a new way for your "id" that you'll use as hashtable key.

It's like your name, it's simply not enough to identify you.

 typically, if "blue" is a big category, you could have an arrayList of just the blue doors. but wether or not you need such organization, I doubt it ( unless you want to treat all blue doors in one go or something).

EACH door must have a unique Id you define when you build your level. and blue only becomes a property of that door, which means you never really access a blue door using the "blue" property.

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 26, 2015, 03:05:29 AM
Hi, Jean!

I solved it with an Array List instead of Hash Table.
I have 3 Array Lists. One for each key. Blue, green and a red key.
And everytime I pick up a key, I add it to the Array List with the reference name, for example BlueKeys. When I then use it on a blue door, I use "Array List Is Empty". If it's empty, it goes to a state and activate the text "You need a blue key". If the Array List contain 1 or more keys, it goes to another state and remove one key from the Array List and open the door.  :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on May 26, 2015, 04:20:20 AM
That is great! It seems like you have a good understanding of arraymaker now. next video will belooking at easy save 2 and arrays, in case anyone was curious.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 26, 2015, 05:18:13 AM
Yes, I really start to understand how it works now. But it's a long way to go. :)

Keep up the good work with more tutorials. :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 26, 2015, 05:22:04 AM
Jean?
I sent you a private msg. Just wonder if you got it. :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 27, 2015, 11:23:45 AM
Just a fast question!

If I want to have a limit of items I can pick up. For example I can only have 3 keys at a time. And then I need to use one key before I can Pick up another one. What is the best way to do this? I found my own way, but I wonder if it is an action that can check this.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on May 27, 2015, 11:24:28 PM
Maybe a singleton manager. Jean made a script for it here in the forums.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on May 28, 2015, 12:24:39 AM
Hi,

 singleton manager is meant to prevent a GameObject to be twice in the scene.

 in your case, I think it's more a question of logic, and to enforce your rules, you should create an interface with global events to add, edit delete keys and implement the rules there. for other pick keys, simple make that next key available as a fsm variables for interested fsm to simply use "get fsm string" on that manager and get that key this way.

Then the singleton enters, this manager only need to be once in your scene, and if load additivly levels and this manager also features in these sub levels, a singleton behavior will ensure a clean scene at all time.


 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 28, 2015, 05:25:12 AM
Thanks, Jean and sebaslive!

What I did which also work, is to use Arraylist Count and use an Int Compare. When I have picked up the limit of keys, it goes to a new state, but the problem is that, I need to send a Broadcast All Event to all the keys, so it can update the Arraylist Count, since this is in the start state. So everytime I pick up a key, I send this Event.

I don't know if you understand what I mean, but it works. I will continue to experiment with this to see if I can find another way also. :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: HyperExc on May 29, 2015, 06:36:20 AM
Hey, guys!

I just want to ask, how does one go about in adding prefabs from a project folder into an ArrayList ? I've tried just dragging and dropping them into the slots of the action, but when I hit Play, nothing happens...

Thanks!

p.s. When I use ArrayList Add for a single prefab object it works fine. But when I use ArrayList Add Range and try to add several objects at once...it doesn't work (nothing shows in the index slots in the inspector in playmode, so I assume it doesn't work).
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 29, 2015, 11:33:50 AM
Hi!
I tried it, and it works for me. I use Array List Add Range, added 3 prefab objects in the list. When I run the game. It will add these objects when I press a key.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: HyperExc on May 29, 2015, 01:22:13 PM
Hey!

I see...well I guess something is wrong on my end then. Thanks for the heads up!
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 29, 2015, 02:26:33 PM
Maybe sebaslive or Jean can give you a better answer. I'm very new to Arraymaker :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on May 30, 2015, 07:48:23 AM
Maybe Jean is very busy, since i didn't replay my private msg yet. But it doesn't matter. I can write here. :)

This is about Jean's samplepackage for ArrayMaker. I can't get some of them to work. I get I a lot of errors.

The Inventory sample, I get these error when I run the scene:
"The fsmVar value <System.Single> doesn't match the value <System.String>
UnityEngine.Debug:LogError(Object)"

The CardsDeck sample, I get these errors:
"Error Loading Action: UI : FSM : UI : HutongGames.PlayMaker.Actions.GUILayoutBeginArea : screenRect
UnityEngine.Debug:LogError(Object)"

"System.ArgumentOutOfRangeException: ArgRange_Array
Parameter name: index"

This errors, I get in Unity 5. And Unity 4 also.

I need this samples to work, because it will be very useful for me and the games I'm going to make. :)

Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on May 30, 2015, 11:45:20 AM
Hi,

 Sorry guys, opening so many messages here and there, it's difficult to keep up :) I have your messages on hold, and want to address them.

 Please bump regularly, DO NOT hesitate!!, in short, the one who shouts the most will get it done... It's not ideal I know :) ... I just need to be refreshed on what's important for you, what can wait, sometimes it's a critical deadline, sometimes it's a project that can be put aside while the issue is solved, I never really know this, so simply bump and bump again.

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on June 03, 2015, 01:30:04 PM
Hi, Jean!

No problem! :) But I hope you can help me with those errors I get in your ArrayMaker samples soon.

I don't like to shout to much either. Maybe you will be sick of that. ;)
Just hope you will take your time for this soon.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on June 03, 2015, 11:54:39 PM
Hi,

 yeah, typically, 1.8 is in very active beta currently, so I expect it to be released soon, and I'll be then making a fresh take at ArrayMaker samples. this is currently problematic cause the sources are using PlayMaker 1.8 beta, and so I can't really bring that back to previous version of PlayMaker...

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on June 04, 2015, 12:26:33 AM
Ok, but I'm using Playmaker 1.7.8.3. So maybe the ArrayMaker samples are not compatible with the current version of Playmaker?
Maybe I should wait for version 1.8 then. :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on June 04, 2015, 09:09:57 AM
Hi,

 yep, wait for 1.8, and then I'll be able to leverage all the samples again.

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: Rabagast on June 04, 2015, 09:24:49 AM
Do you have any idea when Playmaker 1.8 will be released? Can't wait. :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on June 15, 2015, 05:03:51 AM
Hi,

 hopefully soon, but I have no idea myself :)

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on June 15, 2015, 05:12:32 AM
Woo you heard it here first at the best place for array tutorials!

I will also formally announce one more arraymaker tutorial before moving on to a new series!
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: djaydino on June 18, 2015, 09:49:19 AM
hi, i made a scrolling ugui panel for upgrades in my game.
there will be 100+ upgrades Buttons (i think i will use hashtable with gameobject prefabs) but they will only become visible when certain goals have been reached...

what i am looking for is how can i sort them by price (they have a Float with an amount that will be deducted when clicked and a sold image)
and when sold to set those at the back of the list.

i was thinking to prefill my Prefab by price (so from key 0 Cheapest to key 99 most expencive) and use Hash Table Get Next, But i am gonna have a lot of work to adjust if i want to add some new upgrades later on...

i think arraymaker is the right direction but my knowledge is still small on arraymaker, if you could point me in the right direction.... :)
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on June 18, 2015, 02:28:52 PM
i was thinking to prefill my Prefab by price (so from key 0 Cheapest to key 99 most expencive) and use Hash Table Get Next, But i am gonna have a lot of work to adjust if i want to add some new upgrades later on...

Cool, well, how I would manage this is by using arrays instead of hashtables. I added a package that uses arrays to get a float of an object and store it into an array. It then organizes that array from largest float to smallest, and in a new array organize the objects in the order based on the floats that input in the first array. It keeps looping until there are no more objects to grab the floats from.

This is how I would organize the Inventory. Next we need to determine which are sold so that we may remove it from the list. One way is to divide all objects by two tags - sold, sell. Once the player purchases an object, we change its tag to sell so in the original FSM when it goes through the list to organize we add a step in the beginning to place all the sold objects in a separate array for now, do the process of organizing sell by price and reinsert the new array at the bottom of the list.

For the last action, you can use array list copy to and use the start index as the last index used when inputting the sell-able ones in array list get next (current Index + add 1 int)

I'm sure there are different ways to approach this but with this particular one you just need to place all the objects in one parent and let the FSM do the rest. The tedious part is assigning each object to let the player know what they just purchased based on its name. I'm hoping to use the google fu plugin once I am faced with a project like this.

If you have any questions about this, please, let me know! You've been a great help with all these new actions so I hope this can help you out!
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: jeanfabre on June 19, 2015, 09:17:49 AM
Hi,

 Thanks SebasLive for your input, very valuable.

 indeed, I have sometimes 4 5 arrays on a single GameObject because I have this kind of sorting to do ( doing a game of chess atm, and I want to know each square, where each pieces are, etc etc, and I need a lot of arrays to support all my various ways to access this data relations).

 so indeed, if you create a unique string id for each of your items, you can have for example:

1: hashtable reference each GameObject in relation with their unique Key.
2: Several arrays, listing keys in orders, one array could list them by price, another by name, etc
3: each GameObject MUST have a fsm which will host its unique Key, so that you can access data from anywhere, the GameObject should be able to find itself inthese various arrays.
4: then everytime you have a new item, you can call routines in various fsm to go trhough the hashtable ( containing ALL), and then parse and populate/sort/add/remove keys in various arrayLists.

The other way is DataXml. if you use Xml and xPath, you can sort right within your xpath query, never tried it, but I think it should work, and would be UTTERLY efficient indeed cause you would simply need to maintain this xml and save it in playerprefs to keep your user game status over time.

http://www.developer.com/xml/article.php/1560361/How-to-use-XPath-and-Sorting-in-XML.htm

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: sebaslive on June 19, 2015, 11:47:14 AM
Hey Jean, awesome tips!

I was wondering what is XML and do I need to code with it? It sounds powerful and I would like to see how to get started on learning this tool.
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: djaydino on June 19, 2015, 12:46:38 PM
hi,
Thanks a lot for the help both of you,
and the demo (tested it quick and looks good)

i will get into this as soon as i can (very busy till monday..)

i have not worked yet with xml, but i think i am gonna have to, for multi language.

just a few questions?

i can use Data Maker for xml right?
does xml work on mobile?
Title: Re: ArrayMaker Tutorials for All! (4th UP!)
Post by: djaydino on June 22, 2015, 08:51:08 AM
hi,

i think i am getting off topic about xml so i have send a post to the datamaker  (http://hutonggames.com/playmakerforum/index.php?topic=2583.0)Topic

i have tested using arramaker and got it to work, but with 100+ upgrades i do think it will be a lot less work with xml.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on July 01, 2015, 12:56:23 PM
This is may be the last Arraymaker tutorial. Easy save 2 is up and ready for your viewing pleasure! You need the easy save asset to use this. Thanks for watching all!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: flora on July 05, 2015, 06:07:07 AM
thanks for the 5th tutorial  :)
your array serie has been very helpfull ... you have offered me a complete new world of possibilities .. many thanks to you seb !!! and to you jean for creating arraymaker !!!

happy summer to all
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on July 05, 2015, 06:29:46 PM
Thanks for watching and glad you enjoyed it!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: jeanfabre on July 09, 2015, 08:49:29 AM
Hi,

 yeah, SebasLive series is great, thanks for that!

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: djaydino on July 14, 2015, 06:57:06 AM
Hi SebasLive,

can i ask you what Screen Capture software did you use?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on July 14, 2015, 07:10:39 AM
I used nvidia GeForce Experience.

http://www.geforce.com/geforce-experience
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Rhyuzaky on July 18, 2015, 03:55:55 PM
The easy save 2 cause error in my Unity.What's happening?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: jeanfabre on July 20, 2015, 06:20:47 AM
Hi,

 can you paste the exact error?

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: aisha-khan on July 29, 2015, 12:11:21 AM
Thank you soooooooo much
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Rabagast on August 04, 2015, 04:39:39 AM
sebaslive:
Do you want to take a look at my High Score Table? I watch your tutorial to make it.
It's at the end of the video. It's some few things I want to do with the High Score. First of all make it possible to have your own name in the list. And also mark your new score with a different color. But I don't know how to do it yet.

The video is in another forum. Here is the link: :)

http://hutonggames.com/playmakerforum/index.php?topic=10878.0 (http://hutonggames.com/playmakerforum/index.php?topic=10878.0)
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: WseikaW on August 09, 2015, 12:43:58 AM
Can you do the swap sprite tutorial? Thanks.

I wan random generate and show the number between 0-99 with my custom sprites.

(http://i.imgur.com/eepXcCd.jpg)
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on August 10, 2015, 07:05:11 AM
Hi, I am working on other tutorials but what you could do is make a random int that goes from 0 to 99. Then you compare that int variable to see if it is greater than 10, if not then you have your single digit number that you could get from your array.

If it is greater than 10, then break up your number into two separate ints by converting the int to a string, and use the action Get Substring twice to get the two ints and now convert those two strings into ints. After that you want to get the first int and find the index number of your array and set the first sprite with that index and then set the second sprite to your second int index value that you now have.

So this deals more with the logical side of coding than getting to know array unless you wanted to use a get random array solution. If that were the case then you would want to use a prefill count of 99 and set each item from 0 to 99 using these sprites but you want the code to do the work for you. Lastly, these are just two ways to do it and I am sure there are tons of different ways to accomplish this but I hope this is a good roadmap to getting it done.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on September 18, 2015, 11:01:32 PM
Hello,

I have a specific need, and was wondering if ArrayMaker can help (before I try to wrap my head around how to use it).

I have a very large excel file with different names of famous sport players, organised by sport fields. Each column header is the sport field (e.g. basketball, baseball etc), and under it are all the names of the players from that field.

I need to:
* Get this database into the game
* Upon request, create a new list of, lets say, 40 names (from the entire database)
* The names have to be chosen randomly, and I want to control how many are taken from each sport field (e.g. 10 names from basketball, 12 from soccer etc).
* Display the 40 names from the new list, in a random order (one after the other - WITHOUT repeating the same name twice)
* Preform the last step any number of times (each time with a different random order)

Is this something I will be able to achieve using ArrayMakers functionality?
If not, can anyone point me in the direction of an alternative solution?

Thanks!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on September 19, 2015, 09:08:42 AM
I would suggest lloking at an asset called google fu, there might be an excel version of it but that should solve your import database problem. As for the random values, playmaker can handle that with ease (i've been using it in my own project to name people)
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on September 20, 2015, 02:40:08 AM
Hi sebaslive,

Thanks for the reply.
How can playmaker access large arrays and pull data from them?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: jeanfabre on September 21, 2015, 01:25:28 AM
Hi,

 indeed, you'll need a proper database at that point: I suggest the following:

https://www.assetstore.unity3d.com/en/#!/content/3845

echo17 is a very reliable publisher, so it's a safe asset to get.

 Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on October 06, 2015, 12:46:41 PM
Hi,  :)

I want to have an array of game objects, each with the ability to cycle through several states.
Then I want to be able to go through each of said objects in the array, and compare their current state to a given one.
How should I go about marking their current state to achieve this? I can of course use different ways (have them change an Int var when they change state, or change a key attribute when they change state). The question is - what parameter will I be able to pull afterwards from each of the gameObjects in the array for doing the comparison (for I do not wish to compare the game object themselves [like is demonstrated in the Simon says tutorial] but their current state...).

Hope I managed to get me point through.
Thanks for any help!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on October 08, 2015, 07:44:01 AM
Is there a way to automatically add a game object + all its children to an array?

Thanks
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on October 08, 2015, 10:40:50 AM
Hi, you can put all objects into a parent and then use get next child - gameObject store value, next state, add value to array, back to first state until looped.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on October 09, 2015, 08:24:59 AM
Hi, you can put all objects into a parent and then use get next child - gameObject store value, next state, add value to array, back to first state until looped.
Sounds good. Will try it out. Thanks  :)


Btw, performance wise, are there general recommendations regarding:
1. The number of array list proxies on a single game object?
2. The number of items in any given array list?

Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: jeanfabre on October 14, 2015, 04:07:12 AM
Hi,

 Go crazy. I ran tests with 40+ items in array and it's fine. It's not the array content or volume that matters, it's how you owkr with the data when you access it. So if constantly loop trhough everything, everyframe... trouble :) you need to only loop trhough object when really required, and only when data is subject to change.

same with the number of components on a GameObject, it's doesn't matter, but you'll find that it becomes difficult to manage conceptually, while technically, perfs are not affected.

Bye,

 Jean
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Mutajon on October 28, 2015, 01:32:52 AM
Thanks for the informative answer :)
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: coffeeANDsoda on February 09, 2016, 12:31:02 PM
I recently fired up the simon says example, and with the custom actions needed to be imported into the project. Problem is it pauses the game. So I get a error message when I click one of the color buttons.

Code: [Select]
The fsmVar value <UnityEngine.GameObject> doesn't match the value <System.Single> on stateCheck Input on fsm:Sebas Says Controller on GameObject:SebasController
UnityEngine.Debug:LogError(Object)

I am using playmaker 1.7.8.3 because it didn't work on my end using 1.8 when I imported it into Unity 5.1.3f1.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on February 09, 2016, 12:52:16 PM
Hey, how goes it.

If you check out the array list proxy, you'll see that its not adding the game objects like it is in the video. This is because if you look for the state "Add to List" it has Floats selected for the Type. We are not trying to place floats, we are trying to place the game object buttons that were selected in the state before.

Change the type from float to gameobject and set the variable to buttonObj _go

It might have been an error on my part or a conversion error from Unity 4 to Unity 5, either way, I got to the solution by investigating the array's value since the error came from there.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: coffeeANDsoda on February 09, 2016, 01:00:40 PM

It might have been an error on my part or a conversion error from Unity 4 to Unity 5, either way, I got to the solution by investigating the array's value since the error came from there.

Meaning conversion of ecosystem 4.2 and playmaker 1.7.8.3?

Bare in mind, I think I imported the playmaker 1.7 package located in the Unity5.0 folder. Not the 4.3 folder. Also, I didn't take a existing project from 4.7 or 4.6.3. It's a fresh one made from 5.1.3f1 before importing your scene.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on February 09, 2016, 01:04:18 PM
It might have been from any sorts of things, since it's been a while since I have opened that project. More importantly, the solution should be the same.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: coffeeANDsoda on February 10, 2016, 11:34:59 PM
Oh ok. How could I properly use cubes to move instead of lighting up?

I thought instead of setting materials, I could set up itween moves on each cubes Z'd with standard positive/negative directions. But when I use Get Position on the state with a MOUSE EXIT global, they both move as oppose to only moving one at a time.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on February 11, 2016, 07:32:52 AM
Thats a good idea for changing the game.

If mouse exit didn't work, try some other things. I know the logic behind setting things up can be tricky but its also rewarding when discovered. good luck with it!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: coffeeANDsoda on February 16, 2016, 02:03:17 PM
BTW sebaslive, I got a error message that has a similar problem with your ArrayList_01 scene.

Code: [Select]
The fsmVar value <UnityEngine.GameObject> doesn't match the value <System.Single> on stateDrop Cube on fsm:ClickHover on GameObject:Hover
UnityEngine.Debug:LogError(Object)
PlayMakerUtils:ApplyValueToFsmVar(Fsm, FsmVar, Object) (at Assets/PlayMaker Utils/PlayMakerUtils_FsmVar.cs:324)
HutongGames.PlayMaker.Actions.ArrayListGetNext:GetItemAtIndex() (at Assets/PlayMaker ArrayMaker/Actions/ArrayList/ArrayListGetNext.cs:187)
HutongGames.PlayMaker.Actions.ArrayListGetNext:DoGetNextItem() (at Assets/PlayMaker ArrayMaker/Actions/ArrayList/ArrayListGetNext.cs:132)
HutongGames.PlayMaker.Actions.ArrayListGetNext:OnEnter() (at Assets/PlayMaker ArrayMaker/Actions/ArrayList/ArrayListGetNext.cs:111)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:UpdateState(FsmState)
HutongGames.PlayMaker.Fsm:Update()
PlayMakerFSM:Update()

Plus would it be logical to use hashtables on the hover FSM?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: replikant on April 29, 2016, 07:34:02 PM
hello on your SimonSays tutorial, the greenButton yellowButton have an action mission on mine, which one is it?

it says, Missing Action, Action Name: GetMaterialColor
first state : Get color


also, could you make a tetris tutorial with arraymaker? thanks
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: djaydino on April 30, 2016, 02:17:09 PM
Hi,
i am actually working on a Tetris tutorial but it won't be done this week (to much work)
But i wil try to work on it next weekend.

for the missing action you can find it on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)

search for the action name : "GetMaterialColor"
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: replikant on April 30, 2016, 11:19:02 PM
thanks and thanks. waiting for the tetris tutorial
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: coffeeANDsoda on May 01, 2016, 09:48:40 AM
Hi,
i am actually working on a Tetris tutorial but it won't be done this week (to much work)
But i will try to work on it next weekend.

So in the coming weeks you plan on releasing a tutorial series? Not that I haven't been trying to get a hang of arraymaker, but I don't understand properly setting up prefab blocks to rotate a direction properly like in that game.

Especially when it comes to objects being destroy when the same tag or object collides with more than two prefabs.


Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: replikant on May 27, 2016, 11:38:26 PM
hello djaydino

what happened to the tetris tutorial?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: djaydino on May 28, 2016, 03:09:10 PM
Hi,
i got everything working now and i am still testing if there are no errors, i made a webgl build and you can test it out here (http://www.jinxtergames.com/webgames/tetris2/index.html)
You should play in on firefox, on chrome it is a bit laggy and sometimes not working at all.
Especially moving left/right.
But the problem is in webgl and chrome.

I will try to make the tutorial video this week.
It is a kinda big tutorial to explain everything so i have a lot of text to prepare and to look on what i have to explain 1st. That is the hardest part on making a tutorial.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: replikant on May 28, 2016, 05:33:13 PM
the game works great, I just played it. waiting for the tutorial
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: replikant on July 13, 2016, 04:01:17 PM
hello is the tutorial still not ready?
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Kathar on November 19, 2017, 05:59:37 AM
Sorry for the thread resurrection! Been working on a high score system which shows the player name and score, as done in the indexed high score tutorial (tut 6)  in the OP. It’s working great to an extent, but as I’m using an int value as my score instead of a float, I get quite a few duplicate/identical score values, which is all fine, but as it then tries to retrieve the player name via the score value, it ends up just returning the first player with the identical score instead of the correctly associated  player, which then causes issues when I’m trying to reposition all connected players in order of score, as it keeps trying to reposition the same player.

Anybody have any ideas? I’m sure it’s just something really something simple/obvious I’m missing. Thanks for any help!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: djaydino on November 19, 2017, 07:08:45 AM
Hi.
This is indeed an issue on that tutorials,
This tutorial works better :


The sample files are not available atm (remaking them right now :) )
But will be available on my upcoming asset together with other samples.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Kathar on November 19, 2017, 07:14:31 AM
Hi.
This is indeed an issue on that tutorials,
This tutorial works better :


The sample files are not available atm (remaking them right now :) )
But will be available on my upcoming asset together with other samples.

You’re a legend, thanks so much for that mate! Out at the mo but will check it out as soon as I’m back in, cheers!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: sebaslive on November 19, 2017, 10:26:07 AM
Unfortunately through updates some of the files become non fuctional but thanks to djaydino on making a tutorial based on the newer version of arrays. I would say though that I still find benefits of using arraymaker vs the arrays that come with playmaker as there are still more actions available in arraymaker that aren't yet available in the arrays that come with playmaker.
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: Kathar on November 19, 2017, 11:52:49 AM
Thanks a lot for your help guys - I actually think I've managed to fix it another way which was thankfully pretty simple. I'm using the method as in the tutorial in the first post still, but now I've just changed it so as it cycles through the players/score every loop, I just remove that player and score from the two lists using the IndexOf value so it can't be found/used again. Although technically the score for that player may not be THEIR exact score exactly, it doesn't really matter, as it will only find/remove a score that is identical, so all seems to work okay!
Title: Re: ArrayMaker Tutorials for All! (5th UP!)
Post by: djaydino on November 19, 2017, 02:30:10 PM
Hi,
Just to let people know, there was a typo in the "Array Get Next 2" which broke the reset.
please re download the action.

@sebaslive
Indeed array maker is more power full than the standard, but for this case the standard works fine :)

@Kathar
I actually did something similare with that.
What i did is make a copy from the list and remove from the list when looping :

(https://i.imgur.com/03wWNKw.gif)