How do I scroll my map with Touch object?

Get help using Construct 2

Post » Wed Jan 20, 2016 9:20 am

yeah it has to be possible to drag the lajyer instead a sprite, i have also a huge bug with this example, if you drag the map too far THEN collisions dont work anymore and the map image, leave the app screen.
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Jan 20, 2016 11:25 am

@imothep85 You should not be able to move the map too far if you have done it right. I guess you have on collision with the sprites then change the position of the map? You have to have "is overlapping" so it stops the map from going too far every tick.

As you can see in my example there is no way to move the map too far as it stops whatever you try to do.

How many objects are on the layer you need to move?
B
49
S
20
G
11
Posts: 696
Reputation: 10,881

Post » Wed Jan 20, 2016 2:40 pm

just the map :D but don't worry it works perfectly under android :D
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Jan 20, 2016 4:06 pm

Ok, good. And if you don't have too many objects that needs to be dragged you could have a pin behavior on each object and pin them to the map sprite when they are created and they will move with the map while being dragged.
B
49
S
20
G
11
Posts: 696
Reputation: 10,881

Post » Thu Jan 21, 2016 8:31 am

now i added a video player with format "ogv" for android but videos don't play when i export to intel xdk, under browsers the videos are played but inside intel xdk no, i don't know if i have to add a plugin inside the xdk project?
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Mon May 16, 2016 4:58 pm

@Anonnymitet Can you please share the link again?
B
24
S
7
Posts: 330
Reputation: 2,210

Post » Wed May 18, 2016 11:38 am

sudeep98 wrote:@Anonnymitet Can you please share the link again?


I have emptied my example folder on dropbox so all my old examples are lost I'm afraid :(
B
49
S
20
G
11
Posts: 696
Reputation: 10,881

Post » Thu May 19, 2016 2:24 am

@Anonnymitet That's okay, Thanks.
B
24
S
7
Posts: 330
Reputation: 2,210

Previous

Return to How do I....?

Who is online

Users browsing this forum: MAD4R4, repkino, Solomon and 11 guests