Solitaire game with Construct 2

Get help using Construct 2

Post » Sat Dec 15, 2012 12:15 am

@0plus1 This may be true, but not everyone has the time to learn a 'real' programming language, and doing this brings up other issues that the beginner may not be equipped to deal with.

I agree that this will be on the more difficult side in C2, but it can nonetheless be done.

That being said, now that I realize some of the finer complexities, I might suggest starting with a simpler card game.

(Regarding possible jerkiness - don't worry, we all have our grumpy days ;) )
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Dec 15, 2012 12:41 am

Actually since we now have containers, arrays should be much easier to deal with.
Pretty sure it works with creation, haven't tested with destroying etc, not much time to spare lately.
But the fact that you can pair them up in an oop fashion should be sending shivers down everyone's spine.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat Dec 15, 2012 1:04 am

@newt why exactly should I be shivering? I'm curious now...
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Dec 15, 2012 1:23 am

Each object can now have its own array, that is automatically picked when the object is.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat Dec 15, 2012 1:35 am

Wow, never thought about doing that... So many possibilities!

I never even knew arrays could have instances.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Dec 15, 2012 2:15 am

@sqiddster I never said it's not possible, simply that most people think that solitaire are easy games to do while in reality there is a good level of complexity, especially in some variations (like the mobile hit fairway solitaire for example). The reality is that c2 doesn't handle well those kind of games, and by that I mean that it doesn't have "automatic" behaviours like for platform games, so you'll have to delve a little into the code. That was my point.


@newt mind blown!
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Sat Dec 15, 2012 4:29 am

Anyone could make a solitaire game as open source .capx and we improve it?
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Mon Dec 17, 2012 2:19 am

I got a solitaire capx working here:
http://dl.dropbox.com/u/5426011/examples16/solitare.capx
You are just as likely to win as if you were playing with a real deck of cards.

I opted to not use arrays and now that it's done I wonder if it may have been simpler to use them.

EDIT:
I'm positive this could be done much simpler. As a first full attempt at such a game I added a bunch of events to try stuff out.R0J0hound2012-12-17 07:32:43
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Mon Dec 17, 2012 10:23 pm

Once again it's Rojohound to the rescue .Thank you for the capx . I will study it and see what i can come up with.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Mon Dec 17, 2012 10:52 pm

[QUOTE=R0J0hound] I got a solitaire capx working here:
http://dl.dropbox.com/u/5426011/examples16/solitare.capx
You are just as likely to win as if you were playing with a real deck of cards.

I opted to not use arrays and now that it's done I wonder if it may have been simpler to use them.

EDIT:
I'm positive this could be done much simpler. As a first full attempt at such a game I added a bunch of events to try stuff out.[/QUOTE]

Wow, you're faster!
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Previous

Return to How do I....?

Who is online

Users browsing this forum: Je Fawk, theosciandra and 28 guests