When creating an object, I want to set the x-coordinate to a variable times another variable. The two variables are HandX and HandA How do i type it in the x-coordinate of the create an object box?
Develop games in your browser. Powerful, performant & highly capable.
I might have found the solution on my own. The original intent for the code was to draw a card to the Player's hand 70 pixels from the last card in the hand so i was going to do variable "CardsInHand" x "SpawnPoint" so if whatever amount of cards in hand the new card would always be drawn next to it.
But i realized im dealing with global vars. They dont change no matter what event so if i just do create object at HandX, 620 then it will spawn to whatever point is next of the last card in the hand because everytime your hand goes +1 or -1 HandX will +70 or -70.
See expressions in the manual.
To multiply two numbers use *:
HandX * HandA
Thanks! That knowledge was still useful.