How to prevent different combinations?

Get help using Construct 2

Post » Thu May 07, 2015 1:24 pm

LittleStain wrote:ok.. A few questions..

Why is there a sprite3, sprite4 and sprite5, when they are exactly the same object as sprite?
Why not use instances?
Why is there a drag and drop behaviour on both the sprites and the family all the sprites are in?


Okay. No problem to use instances and sorry about the behavior duplication. I tried to create a new project quickly.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Fri May 08, 2015 10:17 am

Please, guys. I still need a little help with this subject.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Fri May 08, 2015 10:38 am

I'd be more than willing to help, if helping didn't mean creating it for you..
I gave a very badly made example and all you did was add one event that didn't work as expected..

I was hoping to see your code and give some advice as to how to get closer to your objective..

So what you'd like to do is when sprite is overlapping another sprite, check if the sprite would fit.
All you would have to do is create conditions on drag and drop drop, to check these..
A rotated triangle won't fit inside a non-rotated square, etcetera..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri May 08, 2015 10:47 am

I myself would go for a different approach and create two families..
One for the pieces and one for the example/background..
family1 is overlapping family2 - check some variables and act accordingly..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri May 08, 2015 12:35 pm

LittleStain wrote:I'd be more than willing to help, if helping didn't mean creating it for you..
I gave a very badly made example and all you did was add one event that didn't work as expected..

I was hoping to see your code and give some advice as to how to get closer to your objective..

So what you'd like to do is when sprite is overlapping another sprite, check if the sprite would fit.
All you would have to do is create conditions on drag and drop drop, to check these..
A rotated triangle won't fit inside a non-rotated square, etcetera..


I don't ask for a project or example either. You did it because you wanted, and I just prepared the other example because you didn't understood what I'm looking for.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Fri May 08, 2015 2:06 pm

RenatoB wrote:
LittleStain wrote:I'd be more than willing to help, if helping didn't mean creating it for you..
I gave a very badly made example and all you did was add one event that didn't work as expected..

I was hoping to see your code and give some advice as to how to get closer to your objective..

So what you'd like to do is when sprite is overlapping another sprite, check if the sprite would fit.
All you would have to do is create conditions on drag and drop drop, to check these..
A rotated triangle won't fit inside a non-rotated square, etcetera..


I don't ask for a project or example either. You did it because you wanted, and I just prepared the other example because you didn't understood what I'm looking for.


I think I do understand what you are looking for..
Good luck finding it.. :)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri May 08, 2015 2:47 pm

in some cases it is better to keep quiet, especially when we have nothing to add. If we do not know how to help someone, it is best to let others do it.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Sat May 09, 2015 3:38 pm

Hey guys. I still need a little help of my pals.

https://www.dropbox.com/s/u7hcn97o2hmi2 ... .capx?dl=0

I would like to know how to check if the player used a two triangles (with different angles) or a square to occupy a square mark. I need to know too how to snap the sprite on the mark independently the shape (square or triangle) and the angle.

Thanks in advance

*** A CAPX is not necessary. I just need to understand the logic.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Previous

Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk and 56 guests