timbanon's Forum Posts

  • Thanks! That knowledge was still useful.

  • I figured it out. I had to upgrade from r86 to r90.

  • I have Construct 2 Free.. How do I change an event block to an 'Or' statement rather than 'And'. I do not see the option.

  • 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.

  • 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?

  • One more question doe.. When i create an object that goes to your hand how do i make it show a different frame. Im understanding the sprite frame/card image is linked to the array somehow. So guessing, im thinking maybe i create the object and set the frame to the number in the array.

    How do i set the frame drawn to the array number?

    How do i set the size of the array?

    How do i remove the number drawn from the array?

  • Ohh. Thanks Aridale!

  • Thnx ;]

  • <img src="http://timbanon.com/games/Final%20Sun/images/logo-default-000.png" border="0">

    Go play Final Sun: The Last Protector

    The Dimensional Rift is open! Earth is under attack in an attempt of recivilization by an unknown alien force. They came from tears in space and time and the last protector is in the skies to defend Earth's major cities. This may be the last hope or the final sun for humanity.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have a Card Deck. Cards are drawn from in-deck to in-hand, and in-hand to in-play. I was using an Array for the deck, but was thinking maybe I should make each card an individual Sprite so maybe they can each have their own animations in the future when played on the field.

  • How do I make the amount of cards in the Array(Deck) go down every time a player clicks the deck?

    I have a bug. Everytime a Player clicks the Deck. The same card is always drawn. I have frames for all the cards in the Sprite, but it doesnt change when a card is drawn.

    Want me to post the .capx?

  • How do I?

  • The array route probably ends up with less work, if your smart enough to organize the card states (in-deck, in-hand, in-play)

    The family route seems more simple to understand, grouping each card/sprite into families (FamilyA=PlayerA's Deck; FamilyB=PlayerB's Deck). Each card/sprite would also have their own private variable that changes from 'in-deck' to 'in-hand' to 'in-play', and back to 'in-hand' sometimes, which can be controlled with the FSM, correct?

  • Basically a finite state machine.

    A bunch of conditions like this:

    + GameState == "StartStep PlayerA"

    > do stuff required for this step

    > if done then GameState = PlayStep PlayerA

    + GameState == "PlayStep PlayerA"

    > do stuff required for this step

    > if done then GameState = AttackStep PlayerA

    Would GameStates be Groups with conditions and actions in them?