2 registered members (TipmyPip, 1 invisible),
18,758
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Pixels bleeding into background?
[Re: MrCode]
#122981
04/12/07 16:18
04/12/07 16:18
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Not yet. Try setting screen_color to (8,8,8)...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Pixels bleeding into background?
[Re: Uhrwerk]
#122983
04/12/07 23:19
04/12/07 23:19
|
Joined: Mar 2007
Posts: 677 0x00000USA
MrCode
OP
User
|
OP
User
Joined: Mar 2007
Posts: 677
0x00000USA
|
Still doesn't work.
Is there anything in the actual code that I missed?
See above for the latest code (I haven't changed it since, except trying screen_color).
EDIT: mabye it's in the level load function code?
Last edited by MrCode; 04/12/07 23:24.
void main()
{
cout << "I am MrCode,";
cout << "hear me roar!";
system("PAUSE");
}
|
|
|
Re: Pixels bleeding into background?
[Re: MrCode]
#122984
04/13/07 05:40
04/13/07 05:40
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I recommend creating a blank level to load when your at the menu...
'Tis what I did for my last project...
xXxGuitar511 - Programmer
|
|
|
Re: Pixels bleeding into background?
[Re: MrCode]
#122986
04/14/07 03:51
04/14/07 03:51
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
my host has seem to of disapeared... ?
I can't log in or even view my site with: 1gigfree.com
their service was the best I've had, until now... lol.
EDIT: I'm also now sure why it's tiling. I know the manual says something about tiling panels somewhere, but I couldn't find it...
Last edited by xXxGuitar511; 04/14/07 03:51.
xXxGuitar511 - Programmer
|
|
|
Re: Pixels bleeding into background?
[Re: xXxGuitar511]
#122987
04/15/07 11:32
04/15/07 11:32
|
Joined: Oct 2004
Posts: 1,655
testDummy
Serious User
|
Serious User
Joined: Oct 2004
Posts: 1,655
|
Code:
var video_mode= 8; var video_screen= 1; var video_depth= 32;
include <level_loader_top.wdl>; include <level_loader_car.wdl>;
string level1_wmb= <carmovesnd.wmb>; string level2_wmb= <top_move_test.wmb>;
bmap back_pcx = <mrcode.pcx>; bmap mouse_pcx = <cursor.pcx>;
bmap imBack = <back.pcx>; bmap imBackOn = <back_on.pcx>; bmap imBackOver = <back_ovr.pcx>; bmap imCar3d = <car3d.pcx>; bmap imCar3dOn = <car3d_on.pcx>; bmap imCar3dOver = <car3d_ovr.pcx>; bmap imExitOn = <exit_on.pcx>; bmap imExitOff = <exit_off.pcx>; bmap imExitOver = <exit_ovr.pcx>; bmap imTopSpinner = <top_spinner.pcx>; bmap imTopSpinnerOn = <topspinner_on.pcx>; bmap imTopSpinnerOver = <topspinner_ovr.pcx>;
/************************************ fMouseCLoop *************************************/ function fMouseCLoop() { proc_kill(4); mouse_map = mouse_pcx; while(1) { if (mouse_mode > 0) { mouse_pos.x = mouse_cursor.x; mouse_pos.y = mouse_cursor.y; } wait(1); } }
panel back_pan { pos_x= 0; pos_y= 0; bmap= back_pcx; flags= visible; } panel button1_pan { pos_x = 350; pos_y = 250; button = 0, 0, imTopSpinnerOn, imTopSpinner, imTopSpinnerOver, load_lvl1, null, null; layer= 2; flags= visible; } panel button2_pan { pos_x = 350; pos_y = 350; button = 0, 0, imgCar3dOn, imgCar3d, imCar3dOver, load_lvl2,null,null; layer= 2; flags= visible; } panel exit_pan { pos_x = 350; pos_y = 450; button = 0, 0, imExitOn, imExitOff, imExitOver, exit, null,null; layer= 2; flags= visible; } panel back_button { pos_x = 0; pos_y = 0; button = 0, 0, imBackOn, imBack, imBackOver, go_back,null,null; layer= 3; }
function load_lvl1() { wait(1); button1_pan.visible= off; wait(1); button2_pan.visible= off; wait(1); exit_pan.visible= off; wait(1); back_pan.visible= off; wait(1); back_button.visible= on; wait(2); level_load (level2_wmb); wait(1); camera.x= 0; camera.y= -876; camera.z= 664; camera.pan= 90; camera.tilt= -62; camera.roll= 0; }
function load_lvl2() { wait(1); button2_pan.visible= off; wait(1); button1_pan.visible= off; wait(1); exit_pan.visible= off; wait(1); back_pan.visible= off; wait(1); back_button.visible= on; wait(2); level_load (level1_wmb); wait(2); camera.x= -714; camera.y= 0; camera.z= 845; camera.pan= 360; camera.tilt= -71; camera.roll= 0; }
function exit() { sys_exit (null); }
function go_back() { wait(1); back_pan.visible= on; wait(1); button1_pan.visible= on; wait(1); button2_pan.visible= on; wait(1); exit_pan.visible= on; wait(1); back_button.visible= off; } /************************************ uiFreshen *************************************/ function uiFreshen() { var w; var h; var posX; var posY; var offset; offset = 10; //imCar3d is the new standard for fresh ui w = bmap_width(imCar3d); h = bmap_height(imCar3d); posX = int(screen_size.x / 2 - w / 2); posY = int(screen_size.y / 2 - ((h * 3 + offset * 2) / 2)); //exit button is bigger but shouldn't be button1_pan.pos_x = posX; button1_pan.pos_y = posY; posY += offset; button2_pan.pos_x = posX; button2_pan.pos_y = posY; posY += offset; exit_pan.pos_x = posX; exit_pan.pos_y = posY; } /************************************ main *************************************/ function main() { //wait(3); uiFreshen(); fMouseCLoop(); mouse_mode = 2; }
|
|
|
|