How do I do create a page swipe action for mobile displays?

Get help using Construct 2

Post » Tue Sep 29, 2015 5:41 am

I've been trying to create a page swipe action for a mobile only game.

What I'd like to do, is emulate having multiple pages in the game and the user swipes right or left to move through the pages.

All the pages are the same layout, so I think the pages can be made from a set of sprites. The set of sprites is then just repeated horizontally with different variations in each set.

So while to the user it may look like they are swiping through pages, they are in fact just swiping from one sprite set to the next.

Of course there may be a much better way to achieve this, in fact there probably is :) , so any suggestions would be very much appreciated.

Thanks!

Andy
B
9
S
2
Posts: 20
Reputation: 888

Post » Tue Sep 29, 2015 10:31 am

I would have put all pages in the same layout too and I think your method is fine :)
It's time for me to return the favor :)
B
32
S
9
G
8
Posts: 132
Reputation: 4,870

Post » Wed Sep 30, 2015 6:15 pm

Thanks ikke2902, good to know I'm on the right track. :D
B
9
S
2
Posts: 20
Reputation: 888

Post » Wed Sep 30, 2015 6:45 pm

Just keep an eye on the number of "pages" and the number of sprites/page - if you have dozens of sprites / page and dozens of pages then you could be impacting on the memory of the mobile device ? As always, test as you are going along on the device in question and keep an eye on memory.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Wed Sep 30, 2015 6:57 pm

Hi RamPackWobble, thank you for the advice. There will be about 20 pages, which will be about 5 sprites that repeat across every page plus 2 unique sprites on each page, which would translate into almost 50 sprites.

If I keep the resolution at the lower end that should work I hope. However I will do lots of testing.
B
9
S
2
Posts: 20
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: ksiads, Mayfly, R0J0hound, RozekEnhance, tarek2 and 3 guests