playMaker

Author Topic: convert a single value into vector 2  (Read 1301 times)

al.bundy

  • Playmaker Newbie
  • *
  • Posts: 4
convert a single value into vector 2
« on: February 16, 2023, 10:52:59 AM »
Hi,

I would like to convert a single value into vector 2.

If the value is 4 then both x And Y vector2 change to 4.

And I can't find a solution, I try to convert float to string action then with the ecosystem action convert string to vector 2 but this doesn't work :(

Any idea ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: convert a single value into vector 2
« Reply #1 on: February 17, 2023, 02:09:30 AM »
for setting float values to a vector 2, use Vector 2 XY
put the float variable in x and y

al.bundy

  • Playmaker Newbie
  • *
  • Posts: 4
Re: convert a single value into vector 2
« Reply #2 on: February 19, 2023, 11:14:31 AM »
that was so simple ;D, thank you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: convert a single value into vector 2
« Reply #3 on: February 19, 2023, 01:28:13 PM »
Hi.
No problem :)
I would suggest you to join the playmaker discord channel :)
Lots of people there that can help if you get stuck :D (and faster than on the forum)