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

Pages: [1]
1
PlayMaker Help / Load sprite from string
« on: November 20, 2019, 07:02:09 PM »
Hi

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

Thanks

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

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?

Thanks

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

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

Thanks

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

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

Thanks

5
PlayMaker Help / Teams Draw
« on: February 19, 2015, 06:47:29 PM »
Hi

I'm trying to create a draw of teams like real life football championships

Just like Premier League. 20 teams. Each team play every other team home and away. Each team play 38 games, so it means we'll have 38 "rounds"

Any suggestion for this crazy idea?

6
PlayMaker Help / Get variables from random gameobject
« on: December 16, 2014, 02:22:50 PM »
I have 5 gameobjects

each one have 3 childs with global variables with different names like this:

Player A
>global string A
>global int A1
>global int A2
Player B
>global string B
>global int B1
>global int B2
Player C
>global string C
>global int C1
>global int C2
Player D
>global string D
>global int D1
>global int D2
Player E
>global string E
>global int E1
>global int E2

Now in another FSM i added them to arraylist and pick a random gameobject from it.

Let's say it picked Player C...

Know, how do i get the variables from Player C?

7
PlayMaker Help / Images from int, string or array list
« on: December 02, 2014, 04:19:07 PM »
Hello,

I have a array list with 100+ numbers. Then i pick randomly 5 of those numbers.

Now i want to show in the scene 5 images according to those numbers that were randomly chosen.

So if goes out number 2, 33, 67, 89 and 140
 i want images nº 2, 33, 67, 89 and 140 to show

How can i achieve this??

Thanks

8
PlayMaker Help / Sports Game
« on: December 18, 2013, 11:33:53 AM »
Hi

I'm trying to make a sports game, but i'm just in the beggining.
I know it's a hard project for a newbie but i have no hurry...

I've read some parts of Mat Buckland "Programming Game AI by Example" and Thiago Viana "creating a soccer game" but most of it i don't understand cause it's C++ and js.

In my project i have 2 Goal's, Ball, Team A (empty gameobject) with 1 goalkeeper and 4 players (childs), Team B, Floor.

First of all i want to make a project where we don't have characther controller. It's all AI.

1º Goal: How to controll the ball and how to pass it?

player:

"itween move to"
transform position: ball

and then how to attach the ball when in controll by the player? I already tried "collision enter" (seems that it starts too soon)and "parent" but with no success. I also tried other actions but no luck.

Can You help me?

Thanks

Pages: [1]