oakenn's Recent Forum Activity

  • Just one last question is it normal that it spawns in powers of two? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Wow thank you Mr Sully The Strange! Onward with the adventure!

  • Great I just learnt something new! Ok here is the link if anybody is

    interested:

    dl.dropbox.com/u/47181564/Solitaire.capx

    I disabled the animation frame incrementation so now it basically just

    spawns a king of hearts. When run just click on the green back ground and things should start slowing down around 15ish.

    Cheers

  • ok no problem except what is a .capx file and how do i post it? <img src="smileys/smiley5.gif" border="0" align="middle" />

    cheers

  • Ok I tried this out and it worked like a dream however (funny how there is always a but) I did the following little project to test it out so with 1 sprite and 52 animation frames and then when I did a mouse click i would spawn a card incrementally at the mouse location.

    It worked like a charm but something weird happens as i click from about the 10th card onwards the card spawning time grows exponentially longer so by about 15 spawns i'm waiting like a minute to see the card (in chrome) here is the coding: original card sprite is invisible to start off with a global integer called cardNb.

    <Mouse> <On any Click> <Card> Spawn Card on layer 1

                            <Card> set animation speed to 0

                            <Card> set visible

                            <Card> set position to (Mouse.x, Mouse.Y)

                            <Card> set animation frame to cardNb

                            <System> add 1 to cardNb

    Have I coded something wrong or is this just a performance limit and so I could never have 52 cards spawned?

    Regards

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds like a plan! Thanks for the idea I'll try it out straight away.

  • Hi guys,

    I just downloaded construct 2 and it looks really fabulous. However I'm not too sure if it is really designed for what I had in mind. I have already developed a few card games in java/swing and so as a warm up I would like to have a go at this as my first project.

       From what I have seen would I have to crate 52 sprites with each one having its proper set of events which seems to be a bit of a nightmare or is it possible to have just 1 card sprite and to spawn 52 cards with different characteristics i.e. different graphics, instance variables to represent its suit and value etc.

       Secondly would i be able to drag and drop each one of these individually around the screen?

    Cheers for any input.

oakenn's avatar

oakenn

Member since 27 Oct, 2011

None one is following oakenn yet!

Trophy Case

  • 13-Year Club

Progress

13/44
How to earn trophies