Space Ship User Controls -- best design idea

Discuss game development design and post your game ideas

Post » Wed Nov 05, 2014 12:19 pm

I have a game that is working in the web preview. For direction I am using the on touch method to detect where the user clicks on the screen. In my current testing I am using the space bar to shoot.

So far that works well.

(So far I love Construct2. I just upgraded to the personal license and tested moving to the mobile test.)
The problem is now that I am going to a mobile test with the intel xdk app, I dont have a space bar to shoot.

So I thought I would add a fire button.

When I add a fire button the shop wants to move to that part of the screen when the user clicks fire.

So my problem is design and coding. Do I add something to the detect on the screen to say "if the user touches the screen, and the user is not touching the button then move here."

Or do you rec using a right left pad with a fire button control on the screen.

I would use the accelerometer to detect movement, but not sure I like that either.

Whats you opinion?

thanks
-G
B
8
S
2
Posts: 47
Reputation: 610

Post » Wed Nov 05, 2014 3:14 pm

You can use the Is Touching condition, and invert it (right click, select Invert), so it becomes Is NOT Touching (Fire Button).

Ship Controls.jpg


In combinations with Global Variables, you can filter the touch action to trigger a specific effect.
You do not have the required permissions to view the files attached to this post.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Wed Nov 05, 2014 6:06 pm

Thanks! You are a rock star! That worked.

Whats you opinion .. have arrow control (D pad) for movement, or just use touch on the screen?
B
8
S
2
Posts: 47
Reputation: 610

Post » Thu Nov 06, 2014 12:36 am

Gregster wrote:Thanks! You are a rock star! That worked.

Whats you opinion .. have arrow control (D pad) for movement, or just use touch on the screen?


I went with touch controls for movement & combat.

I really hate digital d-pad or joysticks in my space games for mobiles. It's just too clumsy and not taking advantage of the inherent advantages of the platform: Touch, poke, tap, slide, multi-touch etc.

Try it here and see how it feels for you: https://play.google.com/store/apps/deta ... lite&hl=en
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Thu Nov 06, 2014 5:10 pm

I checked it out a bit, pretty nice game. thanks for the advice, I will give that a try.
B
8
S
2
Posts: 47
Reputation: 610


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 4 guests