Gamestudio Links
Zorro Links
Newest Posts
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,123 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
removing bitmaps #314426
03/08/10 15:49
03/08/10 15:49
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
I am a programmer working the free version of lite-c.
I have made the first level of a game and I want a simple intro text.
I used the bitmap stuff from the workshops and got it to appear on screen at the correct coordinates..ect.
My problem is that I don't know how to code it so when I press any key the bitmaps dissapear.
PLEASE HELP!!!!
rtsgamer706

Re: removing bitmaps [Re: rtsgamer706] #314427
03/08/10 15:53
03/08/10 15:53
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Do you use panel objectsto display the bitmap?

Anyway you can use something like this:
Code:
void IntroText_SwitchOff()
{
  reset(myIntroPanel,VISIBLE);
}

void main()
{
  ...
  on_anykey = IntroText_SwitchOff;
}



If this makes no sense to you and you are still unable to solve your problem, maybe showing the important code parts might get you some more (practical) help.

Re: removing bitmaps [Re: Xarthor] #314437
03/08/10 17:04
03/08/10 17:04
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
when I hit run I get an error message that says:

'MAIN' line 40: Syntax error:Can't convert BITNOT:POINTER::LONG.

<reset(my,intro,panel, VISIBLE);
>

what does that mean and how do I fix it?
Thanks for the help

Re: removing bitmaps [Re: rtsgamer706] #314438
03/08/10 17:06
03/08/10 17:06
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
did you read Xarthors post?


why there are "," ?

reset(myintropanel, SHOW); //it have to be show!

if you want to reset different panels you need to call that function every time you want to reset one...

Re: removing bitmaps [Re: Rei_Ayanami] #314439
03/08/10 17:10
03/08/10 17:10
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
now it just says:

myintropanel undeclared identifier as an error, I got that before that's why I added the commas.

Re: removing bitmaps [Re: rtsgamer706] #314466
03/08/10 19:32
03/08/10 19:32
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Sorry, yeah it should be SHOW as Rei stated.

It looks like you just copy&paste that, of course that cannot work.
Maybe post the important snippet of your code using the [ code ] ... [ /code ]
tags (without the spaces)

edit:
I asked if you use PANELs to display the bitmaps. Of course you have to change the "myintropanel" into YOUR panel name.

Last edited by Xarthor; 03/08/10 19:34.
Re: removing bitmaps [Re: Xarthor] #314877
03/11/10 18:45
03/11/10 18:45
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
I do use Panels for my bitmaps if that helps in any way.
I changed the name and everything but still nothing happens on any_key.
I have put the "on_anykey" line in function main().
I made a void main() and put it in that! Still absolutely nothing happens on any key.

here is the first bit of my code:

PANEL* first_pan =
{
pos_x = 135;
pos_y = 90;
layer = 2;
bmap = intro;
flags = OVERLAY | VISIBLE;
}

PANEL* back_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = backg;
flags = OVERLAY | VISIBLE;

}

void Intropic_off()
{
reset(intro, SHOW);
}

//and then at the end:

function main ()
{
level_load ("fl_bg.hmp");
ent_create ("WBC.mdl", vector (-35, 0, 10), white_bc);
ent_create ("helper T cell.mdl", vector (35, 25, 10), helper_cell);
ent_create ("RBC.mdl", vector (40, 0, 10), red_bc);
ent_create ("RBC.mdl", vector (80, 0, 10), red_bc);
ent_create ("RBC.mdl", vector (0, -30, 10), red_bc);
ent_create ("new bacteria.mdl", vector (80, -80, 10), bacterias);
ent_create ("new bacteria.mdl", vector (50, -10, 10), bacterias);
ent_create ("RBC.mdl", vector (98, -75, 10), red_bc);
ent_create ("RBC.mdl", vector (128, -100, 10), red_bc);
ent_create ("RBC.mdl", vector (88, -30, 10), red_bc);
vec_set (camera.tilt, vector (-30, 0, 0));
while (1)
{
vec_set (camera.x, vector (wbc.x-120, wbc.y, wbc.z+50));
on_anykey = Intropic_off;
wait (1);
}
}

I hope this helps

rtsgamer706

Re: removing bitmaps [Re: rtsgamer706] #314881
03/11/10 19:06
03/11/10 19:06
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
void Intropic_off()//thats wrong
{
reset(intro, SHOW);
}


try this

void Intropic_off()
{
reset(first_pan, VISIBLE);
}

WFG progger


asking is the best Way to get help laugh laugh laugh
Re: removing bitmaps [Re: Progger] #314883
03/11/10 19:12
03/11/10 19:12
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
Thank you so much! Now I can continue with level 2!
rtsgamer706

Re: removing bitmaps [Re: rtsgamer706] #314888
03/11/10 19:21
03/11/10 19:21
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
No problem laugh
Im happy to hear that it works (:
When u have questions PM me (:
WFG Progger

Last edited by Progger; 03/11/10 19:21.

asking is the best Way to get help laugh laugh laugh

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