Page 6 of 6
Re: Pong Tournament

Posted:
Wed Apr 18, 2012 9:49 pm
by skydereign
NightOfHorror wrote:not only the player gets a PongPoint gone if they lose?
Explain this then. If it isn't a global variable, then why can't you use the same code? The individual actors don't own PongPoint, so just have it when a player loses, reduce PongPoint. You are probably over thinking this, because this is at the level of being too simple for me to really be able to explain (especially without knowing what you did). If you want, I'm on the .net site's chat.
Re: Pong Tournament

Posted:
Thu Apr 19, 2012 1:38 am
by NightOfHorror
if its under global code, it is global variable? How will I even do the transitions, am I not giving enough info.
Re: Pong Tournament

Posted:
Thu Apr 19, 2012 1:46 am
by skydereign
If you want an answer that applies to your game, then yes you are not providing enough information. If you set it up with clones and a score array, you could use that to monitor which ones one, and that would be pretty easy. From there it would create the appropriate victory/defeat text. But since you already have put something in place, if you want help fixing it, we need to know more about it. Where and how is the game supposed to detect that a player lost? What is it supposed to do when the player has lost?
Re: Pong Tournament

Posted:
Thu Apr 19, 2012 2:16 am
by NightOfHorror
The player lost when they got ten points. This means that the view will not transition to their winning background and text when there is only one man standing. If he loses, also PongPoint subtracts a point from its total. If you need a ged, I will give one, and I do over think stuff. I experimented with a few more theories and still failed, so I am trying. Maybe I am getting desperate for an answer and am not thinking clearly.

Re: Pong Tournament

Posted:
Thu Apr 19, 2012 2:21 am
by skydereign
That sounds about as backwards a way to do this as it can get. Essentially you are trying to prevent the view from moving to a paddle that has lost. You should really just move to or create the victory screen of the paddle that won. Looking at an actual ged would help me to figure out what you are thinking.
Re: Pong Tournament

Posted:
Thu Apr 19, 2012 2:22 am
by NightOfHorror
okay, I will pm one in a few minutes or so.
Re: Pong Tournament

Posted:
Fri Apr 20, 2012 2:43 am
by NightOfHorror
I am technically done. Now, it will move view to winning background when he is last one standing, but won't move when the others are last one standing.
Re: Pong Tournament

Posted:
Fri Apr 20, 2012 3:54 am
by skydereign
Can't you just use the same code you used to make the view move when the player wins? Just fit it for the other paddles.
Re: Pong Tournament

Posted:
Fri Apr 20, 2012 11:21 am
by NightOfHorror
I did, but I have another idea, if this goes down the drain.
Re: Pong Tournament

Posted:
Sat Apr 21, 2012 12:54 pm
by NightOfHorror
That other idea failed and this is the deadline. Time to work.