How do I

Get help using Construct 2

Post » Mon Apr 10, 2017 12:13 pm

Nah, it is ok, i can debug mine, hard if i dont understand your logic, which is to expect.

But, say, how do you detect a 'Straight' ?
B
33
S
18
G
27
Posts: 2,431
Reputation: 20,326

Post » Mon Apr 10, 2017 12:40 pm

the cards get sorted in the background and their values are compared and its done like this>>>

first check card >> "X" (as they are arranged in order)

the system then checks in for value that is X+1 then (X+1)+1 & ((X+1)+1)+1 ,also straight is checked at the last as far as other hand ranks are concerned

the method is same as you did.. arrange and check for value.
but i guess you've arranged in ascending order


here's what I've done (a picture for straight)

https://mega.nz/#!5RtR0LRT!qXTzpSjf9EmV4xfpeNasfHmskqJ27caXiE2wIzWPSfw
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Post » Tue Apr 11, 2017 11:28 am

Nice to see that you use the same logic. It also means that what i proposed as logic for using a joker applies to your logic.
B
33
S
18
G
27
Posts: 2,431
Reputation: 20,326

Post » Tue Apr 11, 2017 12:13 pm

sure i made one since yesterday but it isn't perfect.
Still needs a lot of work.

I want to include only one joker card...
but as per my logic I've to add 4 card animations in order to avoid card skin clash, like if i use only one sometimes instead of joker, there appears the back of card animation

Anyways. Thank you very much for the help :)
B
20
S
7
G
5
Posts: 16
Reputation: 3,908

Previous

Return to How do I....?

Who is online

Users browsing this forum: chrisyamao and 1 guest