Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Download Completed Games

New Member?



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

Reply
 
LinkBack Thread Tools
Old 05-26-2008, 11:11 AM   #221 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default


How do I get those lines to go in the right spot?

Edit
I get a whole bunch of errors when I copy and paste.

edit2
maybe you could upload a zip file with the new code. that way we will know that it was done correctly.




Last edited by ZuneMan4 : 05-26-2008 at 11:16 AM.



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 11:19 AM   #222 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

I think i found it(hopefully)
ctrl+F to find this
Quote:
if (pPosition.X < 1)
Replace 1 with 0

Just redownload my originial v. 0.0.9ts and replace this so that nothing else will be changed




LedZepp is offline   Reply With Quote
Old 05-26-2008, 11:24 AM   #223 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default

alright, so here is what happened. You can use the touch to move the paddle left. You cannot use touch to move it right. But you can click to move the paddle right.



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 11:26 AM   #224 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Try replacing the bolded values with -3.0f
Quote:
pPosition.X += MathHelper.Min(GamePad.GetState(PlayerIndex.One).T humbSticks.Left.X * 3.0f, 3.0f);
if (!gameStarted)
bPosition.X += MathHelper.Min(GamePad.GetState(PlayerIndex.One).T humbSticks.Left.X * 3.0f, 3.0f);
And if that doesnt work ill upload something a bit more complex




LedZepp is offline   Reply With Quote
Old 05-26-2008, 11:27 AM   #225 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default

Should I keep that 0 that we just changed?



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 11:28 AM   #226 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Yes keep it, otherwise it will get stuck again




LedZepp is offline   Reply With Quote
Old 05-26-2008, 11:29 AM   #227 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default

Sorry, should we still have the 2.0f?



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 11:30 AM   #228 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Doesnt matter just change the second values to be negative of the first




LedZepp is offline   Reply With Quote
Old 05-26-2008, 11:34 AM   #229 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default

Now the paddle just moves left all by its self. Anything else quick, otherwise I got to go and you can leave me a PM.



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 11:35 AM   #230 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default





LedZepp is offline   Reply With Quote
Old 05-26-2008, 11:39 AM   #231 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 110
Reputation: 9
Default

I'm deploying right now.

Edit
It got stuck and I have to go now.

Last edited by ZuneMan4 : 05-26-2008 at 11:41 AM.



ZuneMan4 is offline   Reply With Quote
Old 05-26-2008, 08:17 PM   #232 (permalink)
Zuner
 
MehStrongBadMeh's Avatar
 
Join Date: Apr 2008
Location: Free Country, USA
Posts: 65
Reputation: 15
Default

I replaced the touch code in the new version of zbreak with my tried and tested code.
It works pretty well for me.
Also included is a custom game thumbnail.

Newer version available
__________________
MehStrongBadMeh - zB Junior Executive Of Not Having To Go On Pointless Business Trips

Note: The viewpoint posted above does not necessarily reflect the opinion of MehStrongBadMeh (or does it?)

Last edited by MehStrongBadMeh : 05-27-2008 at 02:02 PM.




MehStrongBadMeh is offline   Reply With Quote
Old 05-26-2008, 08:23 PM   #233 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Thanks MehStrongBadMeh, Do you know what was wrong with my code?




LedZepp is offline   Reply With Quote
Old 05-26-2008, 08:42 PM   #234 (permalink)
Zuner
 
MehStrongBadMeh's Avatar
 
Join Date: Apr 2008
Location: Free Country, USA
Posts: 65
Reputation: 15
Default

Your welcome,
and Yes, actually I do know what was wrong.

In your code you specify

Code:
if (GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X > 0)
which refers to touching a position on the right of the touchpad.

But then an "else" is placed which refers to anything but touching the right side of the touchpad. This includes not touching the touch pad at all.

To properly use this code you have to use
Code:
else if (GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X < 0)
instead of "else"

But this coding is unnecessary as my code is bidirectional.
__________________
MehStrongBadMeh - zB Junior Executive Of Not Having To Go On Pointless Business Trips

Note: The viewpoint posted above does not necessarily reflect the opinion of MehStrongBadMeh (or does it?)




MehStrongBadMeh is offline   Reply With Quote
Old 05-26-2008, 08:47 PM   #235 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Well if i was looking right, i had the exact same code as you(besides that if statement, which i added when ZuneMan said the paddle would only move left)




LedZepp is offline   Reply With Quote
Old 05-26-2008, 08:56 PM   #236 (permalink)
Zuner
 
MehStrongBadMeh's Avatar
 
Join Date: Apr 2008
Location: Free Country, USA
Posts: 65
Reputation: 15
Default

That if statement is the only thing wrong. The rest of the code matches my zbreak008 mod's code with the addition of the pad size variable.

It is odd that it would only move left as it would be more likely to only move right if the code was wrong.

You could try using my suggestion for your code in my previous post.
__________________
MehStrongBadMeh - zB Junior Executive Of Not Having To Go On Pointless Business Trips

Note: The viewpoint posted above does not necessarily reflect the opinion of MehStrongBadMeh (or does it?)

Last edited by MehStrongBadMeh : 05-26-2008 at 09:22 PM.




MehStrongBadMeh is offline   Reply With Quote
Old 05-26-2008, 08:58 PM   #237 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 738
Reputation: 74
Send a message via AIM to ShotgunSnipist
Default

Hey MehStrongBadMeh,
That ummmm Custom game thumbnail...
Well I don't think you ever put it in.
It's still the default XNA game symbol.
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 05-26-2008, 09:10 PM   #238 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

I dont have a 2nd Gen zune to test this with, thats why i didnt know if my code worked or not




LedZepp is offline   Reply With Quote
Old 05-26-2008, 09:19 PM   #239 (permalink)
Zuner
 
MehStrongBadMeh's Avatar
 
Join Date: Apr 2008
Location: Free Country, USA
Posts: 65
Reputation: 15
Default

Quote:
Originally Posted by ShotgunSnipist View Post
Hey MehStrongBadMeh,
That ummmm Custom game thumbnail...
Well I don't think you ever put it in.
It's still the default XNA game symbol.
What are you talking abou... Oh Crap! I somehow forgot to put it in.

Here:


Just replace it with the default thumbnail.
__________________
MehStrongBadMeh - zB Junior Executive Of Not Having To Go On Pointless Business Trips

Note: The viewpoint posted above does not necessarily reflect the opinion of MehStrongBadMeh (or does it?)

Last edited by MehStrongBadMeh : 05-26-2008 at 09:23 PM.




MehStrongBadMeh is offline   Reply With Quote
Old 05-27-2008, 05:49 AM   #240 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 738
Reputation: 74
Send a message via AIM to ShotgunSnipist
Default

Quote:
Originally Posted by MehStrongBadMeh View Post
What are you talking abou... Oh Crap! I somehow forgot to put it in.

Here:


Just replace it with the default thumbnail.
Schweet! Thanks.
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist 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