App Development

Discussion and feedback on Construct 2

Post » Sun Sep 04, 2016 11:17 am

ScrotieFlapWack wrote:Thanks for the info TheRealDannyyy. These options seem very straight forward but what if you run in to the problem of let's say having a top menu bar with an icon in that menu bar in the near left hand corner of the screen. If I place that icon in the near left hand corner then it will show on the big screen devices but not on the small screen devices. How do you work around that? ...

I would use the Anchor Behavior for that.
Everything you need to know about the use of that is explained very well and better than I could ever do it there.


ScrotieFlapWack wrote:The safezone option does seem to work nicely. I've found a tutorial about it here from another Construct 2 user https://www.scirra.com/tutorials/1126/m ... le-devices.
Looking at his screen shots even on the big screen devices it still looks great. My only issue is for an app that needs specific sizes, viewport calculations and anchoring seems to be the way to go but I would have no idea about how to do all that, I am still relatively new to Construct 2 and mobile development.

Viewport calculations are not required if you don't plan to do custom position based aligning of sprites.
Let me explain that, if you would use the LiteTween plugin to position a sprite from the middle to the upper-left corner.
The way I would do something like that, would be like this:
1. Set the following actions for the X and Y coordinates of the sprite (center sprite):
> ViewportLeft("Layer") + ViewportRight("Layer") / 2 | ViewportTop("Layer") + ViewportBottom("Layer") / 2
2. Set LiteTween targets for the X and Y coordinates of the sprite:
> ViewportLeft("Layer") + 50 //50px from the left edge | ViewportTop("Layer") + 50 //50px from the top edge
3. Start the LiteTween animation

So generally the anchor plugin will satisfy all your needs and viewport calculations are for more advanced things.
Ashley wrote THIS golden tutorial a while back, page 2 should be more interesting to you. The best way to learn responsive game design is to test out all the things by yourself. It's like learning to play the guitar, you could read books for months or even years on how to play it well but personal experience is still the best way to learn and master it.

Important: If you use viewport calculations on devices which can actively resize the game canvas or change screensize modes, re-calculate all the positions!
So instead of settings all viewport actions "On Start Of Layout", make a function and call them whenever you need them.
ImageImageImage
B
61
S
22
G
78
Posts: 646
Reputation: 44,755

Post » Mon Sep 12, 2016 2:09 pm

I have been looking at the AJAX object as well and I am wondering if there is any good tutorials or even anything I can read up on about how to work on a login/signup system for my mobile application.

I have web space and all the tools in my CPanel for mySQL database etc.
B
9
S
3
Posts: 45
Reputation: 770

Post » Mon Sep 12, 2016 2:54 pm

ScrotieFlapWack wrote:I have been looking at the AJAX object as well and I am wondering if there is any good tutorials or even anything I can read up on about how to work on a login/signup system for my mobile application.

I have web space and all the tools in my CPanel for mySQL database etc.

I don't know much about Ajax sorry, I'd recommend a post in the "How Do I" section for this specific topic.
ImageImageImage
B
61
S
22
G
78
Posts: 646
Reputation: 44,755

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: tarek2 and 33 guests