Jump to content


Photo

How to draw only in a determined view


  • Please log in to reply
1 reply to this topic

#1 Hazard94

Hazard94

    GMC Member

  • GMC Member
  • 56 posts
  • Version:GM8

Posted 23 January 2011 - 11:00 PM

Im making a split screen platform game. Double jump is a bonus you get for a certain time, so i want to draw a bar on the bottom of the view that would show how much time you have until loosing the double jump bonus. Lets make an example.
There is player1 and 2.
Player1 gets the bonus and the bar is drawn well in his screen but player2 can also see it in his screen under the player1 character and this should not happen. Player2 shouldn't see it. Ive tried a lot of things but i still cant figure out how to draw the bar only in the player1 screen.
I hope you understand my problem and help me
Thank you in advance
  • 0

#2 Desert Dog

Desert Dog

    GMC Member

  • Global Moderators
  • 6409 posts
  • Version:Unknown

Posted 23 January 2011 - 11:01 PM

Can't you just check what view your in? I.e. if view_current=this then (draw) else if view_current = that then (don't draw)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users