Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,359 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
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 Offline
Expert
Uhrwerk  Offline
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] #122982
04/12/07 16:26
04/12/07 16:26
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
for all of you who couldn't see anythin on the pictures, like me, because they were too small:





a) please don't uplad pngs. they are way too big. b) yo posted the thubnails. imageshack's naming convention is ...shack.us/img148/4172/ex2jc8.th.png for the thumbs and ...shack.us/img148/4172/ex2jc8.png for the real image. just copy the last line the uploader gives you and insert it between two [img] tags.

Re: Pixels bleeding into background? [Re: Uhrwerk] #122983
04/12/07 23:19
04/12/07 23:19
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline OP
User
MrCode  Offline OP
User
M

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.

Code:
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 Offline
Expert
xXxGuitar511  Offline
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: xXxGuitar511] #122985
04/13/07 23:06
04/13/07 23:06
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline OP
User
MrCode  Offline OP
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Made a dummy level, now tiling continues throughout runtime.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
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 Offline
Expert
xXxGuitar511  Offline
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
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

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;
}



Re: Pixels bleeding into background? [Re: testDummy] #122988
04/20/07 04:36
04/20/07 04:36
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline OP
User
MrCode  Offline OP
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
PROBLEM FIXED!!

For some wierd reason, the panel back_pan was being read as similar to back_button, so the engine tried to use the back_off.pcx image as the background.

Renaming the background panel solved everything!


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1