How to Drag, Drop,AND Rotate an object

Get help using Construct 2

Post » Sat Dec 08, 2012 10:29 pm

Hi There:

Yet another newbie to Construct2 here and as is always the case, I'm looking for help. I need to see some examples of drag, drop AND rotate using touch.

I've found some examples of drag and drop using the mouse. They are good, but what I'd like to do in my "test" app is to have one object that can be dragged, dropped or rotated by a user when the object is touched. This is similar to what is done in many art programs when transforming a rectangle.

Would appreciate any kind soul pointing me in the right direction.

TIA
B
6
S
1
Posts: 20
Reputation: 820

Post » Sun Dec 09, 2012 7:54 am

www.shudapanda.serw5.com

Play the game and try placing a bamboo.


Is this something like what you want?
If it is, I'll send you the file for example!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sun Dec 09, 2012 6:33 pm

Rory,

You "ROCK".

YES!!!! The rotation of the bamboo is exactly what I'm trying to figure out. I'm so new to Construct2. The drag and drop is easy to get since it is already built into Construct2, but rotation has me stumped. I'm working on an idea for an application that needs to have the ability to rotate its objects on an iPad or iphone. I've built applications using jquery mobile, but would like to try to use Construct2 for a more ambitious project.

Is there and example or tutorial of how you did this.

Neat game.

Thanks...
B
6
S
1
Posts: 20
Reputation: 820

Post » Sun Dec 09, 2012 7:07 pm

I'll PM you my SRC file for learning alright! :)
Basically just using the drag and drop property, and for rotation, I create this rotation sprite and make it set it's angle to face the position of the Mouse/Touch X & Y. Then I set the Bamboo's rotation to this as well.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sun Dec 09, 2012 7:32 pm

Great! THANKS Rory. I appreciate the help.

B
6
S
1
Posts: 20
Reputation: 820

Post » Tue Dec 11, 2012 11:20 am

Wow, cool game @Rory
Like the games featureskenli2012-12-11 11:35:25
Enlik Tjioe
Game Programmer

Image

www.touchten.com
B
45
S
11
G
6
Posts: 176
Reputation: 7,289

Post » Tue Dec 11, 2012 3:56 pm

@kenli Thank you very much :)
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Wed Dec 12, 2012 12:22 am

[QUOTE=Rory] @kenli Thank you very much :)[/QUOTE]

@Rory, i think i need a .capx sample too for Drag, Drop, and Rotate Object.
Hopefully you can PM me ^^
Enlik Tjioe
Game Programmer

Image

www.touchten.com
B
45
S
11
G
6
Posts: 176
Reputation: 7,289

Post » Wed Dec 12, 2012 12:59 am

[QUOTE=Rory] I'll PM you my SRC file for learning alright! :)
Basically just using the drag and drop property, and for rotation, I create this rotation sprite and make it set it's angle to face the position of the Mouse/Touch X & Y. Then I set the Bamboo's rotation to this as well.[/QUOTE]

@Rory hello, i would like to have your src to learn, i have another interesing example how to change game settings without editing with C2 by myself in return. Thanks!

B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Wed Dec 12, 2012 1:30 am

Alright @Joannesalfa PMing you in a sec :)
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Next

Return to How do I....?

Who is online

Users browsing this forum: ETgirl79 and 17 guests