Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rechronicle on March 01, 2020, 04:27:08 AM

Title: Using database workflow Tips?
Post by: rechronicle on March 01, 2020, 04:27:08 AM
Hello,
I have a question regarding using some kind of data. On my current progress now, I can see that I will end up having a single state with hundreds of String Switch logic just to test which skill to use from the data. And it's starting to get a bit lag in the editor after quite some time.

I guess there's a better way to handle a 'get data, process it, and do something'?
Thanks!
Title: Re: Using database workflow Tips?
Post by: djaydino on March 01, 2020, 05:09:23 AM
Hi.
Depending on your 'data'
you could use arrays or hash tables (array Maker (https://hutonggames.fogbugz.com/default.asp?W715)).

if you have a lot of data i would suggest to use xml and you can get the data with Data Maker (https://hutonggames.fogbugz.com/default.asp?W1133)

xml is a bit slow, so depending on your game, you might need to place your data from your xml to arrays/hashtables @ the start of you game/scene.