|
3 registered members (AndrewAMD, juanex, Grant),
1,018
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
animated game menu....
#291561
09/26/09 13:42
09/26/09 13:42
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
OP

Expert
|
OP

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
is it possible to use a animated gif or play an avi on the game main menu? i have a menu code, and it works fine, but i would like animate the actual game logo panel. i dont know where to start.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: animated game menu....
[Re: Blink]
#291760
09/27/09 18:51
09/27/09 18:51
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
OP

Expert
|
OP

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
ok, forget about the avi or animated panel. is it possible to make a panel blink(no pun intended)? i have a logo panel, and i just want a separate panel to blink next to it, adding a number to the title. can someone help me with that? update: ok, i got it to blink once, but how can i get it to continue to blink say evey 2 seconds?
bmap numb1_bmp = <6pic1b.bmp>;
bmap numb2_bmp = <6pic1.bmp>;
panel picture_pan
{
layer = 10;
pos_x = 100; // use your own values here
pos_y = 100;
flags = visible, overlay;
}
starter blink_pictures()
{
while (1)
{
temp = 1 + int (random(2));
if (temp == 1)
{
picture_pan.bmap = numb1_bmp;
}
if (temp == 2)
{
picture_pan.bmap = numb2_bmp;
}
wait(-2);
}
}
Last edited by Blink; 09/27/09 20:36.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: animated game menu....
[Re: Xarthor]
#291839
09/28/09 12:51
09/28/09 12:51
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
OP

Expert
|
OP

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: animated game menu....
[Re: Superku]
#291932
09/29/09 01:34
09/29/09 01:34
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
OP

Expert
|
OP

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
it's the same results as how i wrote the code. the picture blinks once and stays lit. i want it to blink off and on like a "no vacancy" sign. is that possible?
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: animated game menu....
[Re: Blink]
#291937
09/29/09 04:26
09/29/09 04:26
|
Joined: May 2006
Posts: 148 Latvia
MTD
Member
|
Member
Joined: May 2006
Posts: 148
Latvia
|
Hi, I think the problem is: -the temp will always be more than > 1(because it's not set to 0)  Here is my code: bmap pan1_bmap = "pan1.pcx"; bmap pan2_bmap = "pan2.pcx";
panel free1 {bmap=pan1_bmap;} panel free2 {bmap=pan2_bmap;}
while(1) { blink+=1*time_step; if(blink < 1){free1.visible = on;free2.visible = off;} if(blink >= 1){free2.visible = on;free1.visible = off;} blink%=2; wait(-0.5); }
Tested and worked fine. (Maybe rubbish)
|
|
|
Re: animated game menu....
[Re: Superku]
#292165
09/30/09 18:27
09/30/09 18:27
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
OP

Expert
|
OP

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
i will have a look when i get home from work. thanks for the suggestions.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
|