iPod touch controls, comes into a problem.

Talk about making games.

iPod touch controls, comes into a problem.

Postby AltruismIsDead » Sat Mar 10, 2012 11:39 am

Image

Alright, here's the basic layout of what I have so far, to help understand the problem a bit more, I'll explain whats been done so far.

- I have the 4 controls, Left Arrow, Right Arrow (left side) and 2 Attack buttons (right side).
- They are at close to near full Z Depth, I also have Full Canvas layouts covering the buttons, all at close to full Z Depth. Now the problem comes in.
- My main player "Zombie" is in the middle of Z Depth, so he appears in front of objects behind him, and in back of objects in front of him.

Now the problem I am facing is when the touch controls come into contact with both the Fire Hydrant (foreground object) AND the Stop sign (foreground object) both the arrows, and the filled canvas go behind them, so you can no longer use them since they are hidden.

I have set the Z Depth for both these objects to be BEHIND the controls and the filled region canvas, but yet they still appear in front of them?? (As shown in the picture example)

I don't understand why they are obstructing the view, and also if any coding would be necessary to prevent this from happening? I am hoping this is a bug on my behalf and not a constraint on Game Editor. Any help would be greatly appreciated.
User avatar
AltruismIsDead
 
Posts: 38
Joined: Mon Sep 19, 2011 10:55 am
Location: Milwaukee, WI
Score: 6 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby skydereign » Sat Mar 10, 2012 11:49 am

This probably has to do with you parenting the controls to the view. If you are going to parent hud elements to the view than set the view's zdepth to the highest. I would recommend you do this anyways, as its the best way to handle hud elements. So, any actor parented to another actor shares several things. Some of them are transp, visibility state, rgb, xy (relative change), zdepth, and perhaps a few more.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby AltruismIsDead » Sat Mar 10, 2012 12:11 pm

Yeah, I have the view set to the highest zdepth, I just am racking my brains out over what should be an easy fix.... I'll try a couple other things, but if you're on the chat room I'll link you the file to see if you can notice any mistakes being made
User avatar
AltruismIsDead
 
Posts: 38
Joined: Mon Sep 19, 2011 10:55 am
Location: Milwaukee, WI
Score: 6 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby AltruismIsDead » Sat Mar 10, 2012 3:29 pm

Sorry for the double post, but huge thanks to Phyzix for helping me out with this dilemma.

How do programmers make it so easy? :lol:
User avatar
AltruismIsDead
 
Posts: 38
Joined: Mon Sep 19, 2011 10:55 am
Location: Milwaukee, WI
Score: 6 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby Hblade » Sat Mar 10, 2012 4:31 pm

AltruismIsDead wrote:How do programmers make it so easy? :lol:

Haha, good question. but in actuality, it isn't easy to them. Some things are incredibly hard to programmers, (i'm not a programmer, I just know a bit of code), but a programmer finds fun in the challenge, therefor they are motivated to solve it. At the same time, make it look neat, by keeping Simplicity, and functionality.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby SuperSonic » Sat Mar 10, 2012 4:31 pm

'Cus we understand the computer mind xD
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby Hblade » Sat Mar 10, 2012 4:33 pm

xD Indeed
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby SuperSonic » Sat Mar 10, 2012 9:10 pm

But seriously, people who code a lot learn to understand the inner workings of the computer. At least, that's how I see it ^^
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby Game A Gogo » Mon Mar 12, 2012 12:12 pm

How can you program if you don't know how your code will be interpreted by the computer! :P
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: iPod touch controls, comes into a problem.

Postby SuperSonic » Mon Mar 12, 2012 12:31 pm

Exactly Gogo :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest