A split-screen issue that I have no idea how to solve.

Posted by Fabio on Oct. 16, 2012, 11:48 p.m.

I've been incredibly busy with school, work, and other life-related functions that I haven't had much time for making games recently. However, in my spare time I've been jamming on a little hotseat split-screen game and I've run into an issue that is stumping me. I figure who better to ask than the knowledgeable-ass motherfuckers at the 6 to the 4D?

I'll cut to the chase. Each player has a HUD. But, when a player enters another's viewing area, the HUD appears on the other guy's screen.

Is there any way for each player's HUD to be… invisible on the separate views? Thanks boys.

Comments

Rez 12 years, 2 months ago

Hud drawing coordinates+view_yport[<view number>] and view_xport[<view number>] should sort that out I'd imagine. Since yport and xport handle the drawing region.

Not sure though.

Btw I just watched Texas Chainsaw Massacre because of your avatar and banner. So glad I did. Easily the best slasher I've ever seen.

Ferret 12 years, 2 months ago

In the draw statement just say something like this:

if view_current=<view_number>{
draw_your_junk();
}

Basically since each view is drawn separately you can specify which draw functions go in which views with the view_current variable.

Edit: This is also a great way to cut down on things being excessively drawn multiple times in different views.

Fabio 12 years, 2 months ago

Thanks, Ferret–that worked like a charm. I don't know why I couldn't figure that one out on my own.

@Rez: One of my all time favorite films. Still makes me cringe to this day!

Taizen Chisou 12 years, 2 months ago

I would just give each player the same hud drawn over the game views :/

Quote:
draw_your_junk();

Oh, good, my TI needed a better name for it's penis-drawing feature.

Unaligned 12 years, 2 months ago

Quote: Rez
Btw I just watched Texas Chainsaw Massacre because of your avatar and banner. So glad I did. Easily the best slasher I've ever seen.
I've always wondered if your banner and avatar were from the Texas chainsaw massacre movie(s), because I don't recall the guy having all that hair.

Rez 12 years, 2 months ago

It's at the end of the movie. Leatherface has two "costumes" in the first film, a butcher outfit with a short haircut, and a suit with a big wig.

edit: pretty sure the mask changes too, he has a more "feminine" mask later on