Place the picture in order Game

Get help using Construct 2

Post » Wed Sep 25, 2013 9:31 am

That's very cool - what a lovely present - something with thought and time makes a much nicer present I feel.

I did this for my wife's 50th - http://www.youtube.com/watch?v=lOohToZuMko

Will have a go at picking it apart - I am sure there is lots there I can learn from - very elegant solution.

I am also going to try using just pictures that can be manipulated - like on an iPhone when you move the apps around the screen - but will start a separate post for that.

Thanks again for your help
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Wed Sep 25, 2013 10:26 am

Lol, so cool. I know what you do for a living or at least as a hobby. Great work.

Your Idea: Wow, that sounds really cool. You going to use touch then for sure. I think that is going to look fantastic.

All the best. Will follow other thread.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Wed Sep 25, 2013 10:29 am

Just a hobby - well, not even that - that is my one and only attempt at animation.

We run a centre for Speech Therapy for people with Autism or Learning Disabilities - that is what the app is for

Will keep you posted - if I can get a model working am sure it will be a lot of use to others
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Mon Oct 21, 2013 7:17 pm

Hi @sainsy @plinkie & @DUTOIT

Great stuff!

I have attempted to make the same 'Place The Picture Game' as Sainsy. But instead of using arrays I used Booleans to match the cards.

The major difference to my version is that the cards only snap when placed near it's target (at the bottom)I wanted to give the player a surprise as they drop down their card.

It's almost there but I have problems with the cards snapping underneath each other when you drop them to the target. I can't seem to work out how to write a snap expression with Touch in mind.

Any Suggestions ?

Capx
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Mon Oct 21, 2013 8:14 pm

The logic seems a bit complicated with the grid snapping (unless it's really needed?) I would just snap the object in place when overlapping the slot and is 'InDrop'. If you are allowing the objects to be placed and snapped to any slot, even incorrect ones then you will need to make some logic to determine if the slot is full, basically a boolean for empty/full. If you're not allowing objects to be incorrectly placed then have the object return to origin position when 'InDrop' and not overlapping the correct slot.

Also it looks like event 26 is a bit screwed and causing bugs? You have blue and green touch but then orange match. Anyway, if you need any more help I am here : Dplinkie2013-10-21 20:16:24
B
46
S
15
G
73
Posts: 2,029
Reputation: 43,465

Post » Mon Oct 21, 2013 8:31 pm

@NECROKRIEG

Follow this link as thread continued there.
The example there should steer you in right direction.
http://www.scirra.com/forum/sprite-shuffling-like-on-ios-home-screen_topic76320_post460159.htmlDUTOIT2013-10-21 20:32:49
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Mon Oct 21, 2013 9:41 pm

@NECROKRIEG
@plinkie
@DUTOIT

Haven't had a chance to download your Capx yet and take a look as have had my head in this one

https://www.dropbox.com/s/p6h7fn700hano4l/Sequencing%20Landscape.capx

Feel free to have a route around, but I do need to comment it out a bit more

Thanks Plinkie and Dutoit - am really getting into this now thanks to the earlier help you gave me :-)sainsy2013-10-21 22:01:19
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Mon Oct 21, 2013 9:48 pm

This was an earlier attempt - covers the logic that Plinkie describes

https://www.dropbox.com/s/oomfa4jq79r9p06/Numbers%201.1.capx

Basically you select a number at the top and drag it over the numbers at the bottom - if there is a space it snaps, if it is occupied it sends the occupying number back to where it started and then takes the placesainsy2013-10-21 21:48:37
B
8
S
2
G
1
Posts: 45
Reputation: 1,007

Post » Thu Oct 24, 2013 6:00 pm

Hey Thanks @sainsy @plinkie &DUTOIT :)
Iv tried out quit a few things.

You can now snap to an object and snap out of it. (I couldn't before)
BUT When I overlap a card with another they still stick underneath each other.

Any suggestions to make them not stick but still allow them to overlap ?

Capx
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Thu Oct 24, 2013 8:28 pm

damn timeout, lost my post ...

anyway:

create variables for the sprites
"start_X", "start_Y",
then, make an action "if there are more than 2 correct sprites on spot A"
return bottom sprite to start_X, start_Y
you could also create a third variable "am I on bottom?"
to let the sprite know if it will be the one returning to starting spot.ghost2013-10-24 20:29:05
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Allardje, Held, Rudi55, Vinterstille and 1 guest