Sat. Jul 27th, 2024
This entry is part 35 of 192 in the series Developer Blog
Vector2Vector2 ( float x, float y )

Some times you just have to make sure the inputs are really a float.

Was: (where position_origon is an array containing ints)

var vectro2_position_origin = Vector2(position_origin[0] , position_origin[1));
card.position = card_position(vectro2_position_origin, offset, "noshift");

Now:

var vectro2_position_origin = Vector2(float(position_origin[0]) , float(position_origin[1]));
card.position = card_position(vectro2_position_origin, offset, "noshift");
Series Navigation<< 🐉 Hat Trick a Match 3 Game, part of the Ice Hockey Suite: Winter 2021Dev Log – Black Cat Adventures – Jun 14th – Jun 20th >>