|
  
|
|
|||||||
| Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Zuner
Join Date: Jun 2008
Location: USA
Posts: 54
Reputation: 34
|
Hello,
I'm developing a game similar to bomberman that is doing quite well I must say, BUT, I'm having some problems with zune input. I can control the main character just fine, but for some reason every once in a while, the controls will completely freeze up and go all weird on me. I'm thinking it might be caused by a drop in frame rate, but I'm not exactly sure. The thing is, when I test the game on the pc, it runs perfectly! No input freezing, nothing. Any ideas? Ps. Here's a teaser: ![]() Last edited by MavisPuford : 07-09-2008 at 08:43 PM. Reason: Title Change ![]() |
|
|
|
|
|
#2 (permalink) |
|
zB Programmer
Experienced Member Join Date: Mar 2007
Posts: 975
Reputation: 119
|
Some code would help, upload the class that contains the movement code into PasteBin, and give us a link here
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
#3 (permalink) |
|
Experienced Zuner
Join Date: Nov 2007
Posts: 112
Reputation: 38
|
hmm I've noticed if you swipe rapidly from right to left a couple times it won't report touching the left side until the right side is touched again(not in your program, but just in general); so maybe that's your problem? Also it does a similar thing for down-up. I've noticed it in my own program and have found it to be a bug in XNA through debugging.
__________________
-Mark Check out my new game, "Squadron Z": To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Check out my version of pong with multiplayer: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
|
|
|
|
|
#4 (permalink) |
|
Zuner
Join Date: Jun 2008
Location: USA
Posts: 54
Reputation: 34
|
Thanks for the replies!
Here is the Input class that I wrote:pastebin.com was down when I tried so I put it here: general pastebin - Input Class - post number 1067725 I know it looks a bit messy but I didn't even have a separate input class before and you should have seen how messy my code was THEN! :P Plus this handles windows and zune input at the same time, which is nice. Anyway, in the game, I do something like: Input GameInput = new Input(); then: if (GameInput.IsPressed(InputKey.Left, index)){ blah blah blah; } @MarcusMaximus All I know is that when I walk around after the game loads, it seems to work smoothly. But as soon as I lay a bomb, that's when things go all weird on me. Last edited by MavisPuford : 07-10-2008 at 12:49 AM. Reason: fixes ![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
| |