How do I drag and drop ?

Get help using Construct 2

Post » Sat Jul 12, 2014 3:51 pm

Hey guys,

I am making some tabs in my game. i would like to make it in such a way that the user can drag it and exchange places with other tabs like the google apps thing. how do i do that?

Thnx,
Ashwin
B
15
S
3
G
1
Posts: 111
Reputation: 1,664

Post » Sun Jul 13, 2014 10:03 pm

well ashwin you can brag & drop :lol: IMHO, try to make instance variables for all tabs and name them "X position" & "Y Position" , then condition: when tab1 collides with tab2 ==> action: set tab2 position to tab1.Xposition and tab1.yposition & the vice versa. then add action set tab2 Xposition to tab1 xposition & tab2 ypostion to tab1.yposition and vice versa! hope it helped ;)
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,431


Return to How do I....?

Who is online

Users browsing this forum: DharmaOne and 5 guests