Hi Guys!
I am working on a single device multiplayer game for tablets
***-->Main Thread: Jelly Jam!<--**
And I have big trouble with handling events for all players without writing the same event for every player over and over again.
In my game i want to have different cooldown times. at first I used a cooldown plugin which worked like that:
I wasn't happy with it because I couldn't reduce the cooldown for every player. I tried nearly EVERYTHING with families, instance variables and stuff like that.
The latest thing i came up with is a cooldown-system that uses an array.
Here's a live preview:
Cooldown-System with an Array
and here's the .capx
drive.google.com/file/d/0B9IR6fhnjEUvUnpyRzRCWW9Od0k/edit
Here is a sketch for the Array i use:
My Array system is like 10 times more complicated then my system I had before which had 10 times more events but does not work half as good!
If you click the buttons fast or click one while the other is on cooldown, the system gets bugged really fast.!
Why is it not working properly?
what would you guys recommend for creating games with multiple players?
with placeholders this would be like the easiest task ever.
On touched p*_button : p*_char - spawn p*_bullet
where * can stand for player 1,2,3 or 4.
please help me, it's really grinding my gears.
ask me if you need further information.
by the way I made a similar post 2 and a half months ago, but no one answered. Maybie you can imagine my problem better if you also have a look at this:
Old Thread
cheers! Phil