Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 07-09-2008, 08:34 PM   #1 (permalink)
Zuner
 
MavisPuford's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 54
Reputation: 34
Question Zune Input Freezes Occasionally


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




MavisPuford is offline   Reply With Quote
Old 07-09-2008, 09:11 PM   #2 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

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.




LedZepp is offline   Reply With Quote
Old 07-09-2008, 10:44 PM   #3 (permalink)
Experienced Zuner
 
Join Date: Nov 2007
Posts: 112
Reputation: 38
Default

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.



MarcusMaximus is offline   Reply With Quote
Old 07-09-2008, 11:54 PM   #4 (permalink)
Zuner
 
MavisPuford's Avatar
 
Join Date: Jun 2008
Location: USA
Posts: 54
Reputation: 34
Default Here you go..

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




MavisPuford is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 08:09 PM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community