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 - 4arrancho

Pages: [1] 2
General Discussion / Best workflow
« on: June 01, 2020, 08:07:16 AM »

What do you think it's the best way to do a multiplayer game which 1 player play against other player with their own deck of cards. A game like topps match attax, panini adrenalyn, mynba2k20 or wwe supercard.

I don't know to code. I only use playmaker. I also have easy save, online account system, pun2(free), mirror(free) and game data editor.

With the online account system i can register players to a mysql database and login.

In playmaker i already have a system to get some cards with variables(prefabs) which will be childs of a gameobject that will belong to the player/user

What to do next?

Should i save those cards/prefabs with easy save internaly or send them to the mysql database?

Should i use pun2 or mirror to find other players to play?

Any ideas or tips?


PlayMaker Help / Load sprite from string
« on: November 20, 2019, 07:02:09 PM »

How can i load a sprite from a string?

I have the sprites in the images folder
1.jpg, 2.jpg, etc

I want to load them to some gameobjects (that already contain an empty image component) according to their names/id's


PlayMaker Help / Re: 2d sprite rotation / direction
« on: January 15, 2019, 11:38:48 AM »
I made another fsm just to control rotation

It compares vector2 from velocity to zero and rotates or not.
It only works when i check the "late update" in the "set rotation" action.

Thanks to ch1ky3n and djaydino.

I didn't try the serenefox tip yet.

PlayMaker Help / Re: 2d sprite rotation / direction
« on: January 15, 2019, 07:28:17 AM »
I already had those ideas but i was looking for something like 3d method

In 3d it's very easy like in this tutorial:

If i don't find other solution i'll try the int compare method...


PlayMaker Help / 2d sprite rotation / direction
« on: January 14, 2019, 08:03:15 PM »

I'm trying to rotate a 2d sprite so it "looks forward" as we move it

i have get axis horizontal and get axis vertical
then i have "set velocity 2d" using these 2 axis
After i "get velocity 2d" and store it in vector2
Then "Get atan 2 from vector2"
and finally i have "set rotation" with the atan2 float in the z angle

It works great when i have the keys down but when the values from axis are 0 (keys up), the atan2 is also 0 and the rotation goes back to the original state

How can i get the sprite to mantain the last angle when the key is up?

I've tried other actions like smooth look and many others but i can't get them to work in 2d

Any tips?


Share New Actions / Re: Set Rotation Velocity Direction 2d
« on: January 09, 2019, 05:35:20 PM »

Is possible to change this action so it remembers the last rotation angle before the key is up

Example: If i press the key arrow down it rotates down but if i leave the key it rotates to original position that it's facing right

Hi did you solve this?

I think this is what you want:

The only cons i see in this action is that when the key is not press it rotates to the original position.

For example if we are pressing down the sprite rotates down but when we are not pressing it rotates the sprite to the start position

Share New Actions / Re: String Split
« on: August 03, 2015, 04:42:06 PM »
What's the divider symbol for string with break lines

For example if i have this string
"line 1
 line 2
 line 3"

and wanna split it into
string 1 : "line 1"
string 2 : "line 2"
string 3 : "line 3"

I tried \n and didn't work...


PlayMaker Help / C# array to Playmaker array
« on: June 24, 2015, 11:07:26 AM »

i have a c# script that creates a array list from a mysql database.

Can someone explain me how to get these array elements to playmaker?

I tried the "Get property" from the script but the array variable don't show so i can't grab it


Official Action Updates / Re: Build String Separator
« on: March 05, 2015, 05:40:05 PM »
The example i gave was just to explain what i mean.

Thanks for the new action!

Official Action Updates / Build String Separator
« on: February 26, 2015, 07:44:01 AM »

Small question. In the build string action why the separator value also appears in the end?

If i have 2 strings;
string1: "Thank";
string2: "Jean";
separator: " you "

The result i get is: "Thank you Jean you " instead of "Thank you Jean"

Please help me cause i don't know how to code


PlayMaker Help / Re: Teams Draw
« on: February 24, 2015, 01:34:48 PM »
So you suggest i need a list for each team?

PlayMaker Help / Re: Teams Draw
« on: February 24, 2015, 03:06:18 AM »
I know how to use arraymaker but never used hashtable

I created a list with all the teams.
I picked a random team from that list and removed it.

The problem now is to check for the next games so it don't repeat the games

Example: If team1 plays team14 in "day 1" it can't play team14 again in "day 2"


PlayMaker Help / Re: Teams Draw
« on: February 23, 2015, 10:49:52 AM »
Any tips?

To make it simple, let's make a 4 team group like champions league.

4 teams
every team plays 6 games
3 games at home and 3 games away
Day1: If team A plays Team B, Then Team C has to play Team D
Day2: Team A has to play against Team C or D
Day3: Team A plays against only team that hasn't played before
Day 4,5,6: Repeat the games but if it were played at home, now the team plays away or vice-versa

How to make this kind of calendar?


Pages: [1] 2