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,624
Reputation: 8,573

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
46
S
19
G
9
Posts: 658
Reputation: 9,626

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,624
Reputation: 8,573

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
46
S
19
G
9
Posts: 658
Reputation: 9,626

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,624
Reputation: 8,573

Post » Mon May 16, 2016 4:58 pm

@Anonnymitet Can you please share the link again?
Image



Tim The Traveler @ Google Play Store



https://play.google.com/store/apps/deta ... hetraveler
B
23
S
7
Posts: 325
Reputation: 2,175

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
46
S
19
G
9
Posts: 658
Reputation: 9,626

Post » Thu May 19, 2016 2:24 am

@Anonnymitet That's okay, Thanks.
Image



Tim The Traveler @ Google Play Store



https://play.google.com/store/apps/deta ... hetraveler
B
23
S
7
Posts: 325
Reputation: 2,175

Previous

Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Congrats2u, kiko2015, Moordhuis, omnipaws, R0J0hound, tarek2 and 12 guests