terrancd's Recent Forum Activity

  • Perhaps someone with more experience with Construct 2 could chime in and tell me if there is a better way, but here's how I would do what you are describing ...

    I'd create one sprite and call it "Cards", and load one-and-only-one sprite sheet containing the entire deck (including any repeated cards). Then in the the Layout, I'd copy and paste the number of cards I plan on displaying at any given time (ie 5 cards for poker.) However, I'd only have one sprite in my objects, not 52.

    Then I would add an "Array" to the layout and call it "DeckOfCards". The array would have one index for each of the frames in the one sprite's sprite sheet. For example, an array of 52 numbers with values of 0-51. At first the cards would be in order, meaning the index 0 would contain 0 referring to frame 0.

    Next in the event sheet, I'd add a global number that I could call "temp" and then use it to help shuffle or sort the DeckOfCards Array. After sorting, I'd set the frames of the copies of the sprite "Cards" using their IID's or UID's.

    To keep track of dealt cards, I might have a second global number that tracked the index of the current top-of-deck.

    So for all the card manipulation, I'd use numbers referring to frames in the one-and-only-one sprite. Numbers are easy to manipulate and swap in Construct 2, so I think this would cause less headaches. I think that would fit the Construct 2 paradigm well, and be easier to handle than 52 (or whatever the deck size) of unique sprites would be.

    Hope that helps.

  • If you set up a sprite sheet, and then just switch from one frame to another frame, that sounds like what you need. Am I understanding you correctly?

  • Have a look at my blog http://myconstruct2dev.blogspot.co.uk/ which has several in the github, the best explanation of the code is probably in the asteroids post.

    I love your blog. I spent some time playing your asteroids game today. Very nice.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay. That was good. You could throw in, "My dog/cat won't look at me anymore."

    Did you already see these two tutorials I put together?

    For Dictionary ...

    http://javajdk.net/tutorial/construct-2 ... -tutorial/

    and for LocalStorage ...

    http://javajdk.net/tutorial/localstorag ... nstruct-2/

    I have a zipped capx for the LocalStorage one linked on the tutorial. I will add a zipped capx for the Dictionary one in a few minutes.

  • Steam is so popular, I'd love to see some steam support built into a future version of Construct 2.

  • Hello , I'm Netuno or Michel ( Real Name

    Welcome!

  • terrancd try this link

    Ah. You've got the highscores capx happening. That ought to be worth a look.

  • I threw this LocalStorage tutorial together. http://javajdk.net/tutorial/localstorag ... nstruct-2/

  • I put together a fairly lengthy tutorial about using Construct 2 Dictionaries. It's loaded with images, because that's about the only way to be clear with Construct 2. Hopefully, it's useful.

    http://javajdk.net/tutorial/construct-2-dictionary-tutorial/

    If there are any unclear (or outright wrong) parts, let me know!

  • Also good luck for the "hyperactive" badge, you're on a row

    Thanks! 50 consecutive days, here I come!

  • Hi everyone, I'm here to learn and share about the amazing construct 2 software, so i'll see you soon.

    Welcome! Construct 2 is absolutely amazing, and I'm saying that with 30 years of traditional and web programming experience.

  • I still don't understand the tutorial. Can you explain it with pictures or a video?

    I'll see what I can put together. It'll have lots of pictures ; - )

terrancd's avatar

terrancd

Member since 4 Jun, 2015

None one is following terrancd yet!

Connect with terrancd

Trophy Case

  • 9-Year Club

Progress

9/44
How to earn trophies