views HELP!

Posted by ZtheGreatest on Jan. 2, 2008, 9:24 a.m.

so…. im having trouble with the views in our game… it may just be a simple problem, or not… anyway, heres what i can tell you

we have the main character, and he is the one we want the screen to follow when he reaches the boundary… but since our game is full of traps and monsters… we want it so the player can see part of what is coming infront of him Example: When the player reaches the boundary of the game window, it moves right? this works just fine, but we want it so that as the character moves, the screen moves BEFORE he reaches the end of the screen… theres no other way to explain it really…

view in room:

x: 20 w:400

y:0 h500

port on screen

x0 w:640

y0 h:480

hbor:32 hsp:-1

vbor:32 vsp:-1

room size: 2045 x 1090

any help anyone?????

-z

Comments

Kenon 16 years, 4 months ago

Change the hbor and vbor to larger values. That should solve your problems.

Suggested Values would be hbor=128 and vbor=96> If you still want more viewing area, you can extend hbor up to 250 and vbor up to 200.

Also, the port on screen poses a nasty stretch. I suggest changing the w and h values of it to match the view and room.

ZtheGreatest 16 years, 4 months ago

thanks!

stampede 16 years, 4 months ago

And you are going to make online game? Is 64d becoming more and more like the GMC or what? :D

I don't mean to be harsh, but really.

PY 16 years, 4 months ago

Yeah, it'll be online, 3D, and a MMORPG!

It'll be epic and teh best thing. EVA!

LOLOLOL :-):-):-):-):-):-):-):-):-):-):-):-):-)

Note that the above statement was not, in fact, Phazon Yoshi being serious, and that he does in fact show compassion to noobs. By warning them he wasn't being serious. Like now. GTFO, Noobs.

Grand-High Gamer 16 years, 4 months ago

Get off teh internetz.

stampede 16 years, 4 months ago

Actually, just try to think of a simpler game idea first. IF you can complete that, then think about little bigger one. And so on.

But well, your choice.

PY 16 years, 4 months ago

'any help anyone?????'

looks Noob², learn english, then ask something more like

So, anyone know the answer to my conundrum?

Flea1991 16 years, 4 months ago

Sir Kenon is very much correct: You have to change the hbor and vbor values; they decide how far the player needs to move before the screen begins its own movement.

-Flea1991

stampede 16 years, 4 months ago

Or you could do this:

view_xview[0] = obj_player.x-view_wview[0];
view_yview[0] = obj_player.y-view_hview[0];

s 16 years, 4 months ago

I see others have been harsh, so I'll only say that you should experiment, and learn(praps via RTFM)