|
|
Re: Einschussloch
[Re: Scorpion]
#159657
10/08/07 15:56
10/08/07 15:56
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
add einfach
my.facing = off; my.oriented = on;
|
|
|
Re: Einschussloch
[Re: snake67]
#159658
10/08/07 16:28
10/08/07 16:28
|
Joined: Jul 2007
Posts: 288 Germany, NRW
Martek
OP
Member
|
OP
Member
Joined: Jul 2007
Posts: 288
Germany, NRW
|
Das Sprite erzeugen klappte immer schon... Habs jetzt auch mit den Löchern geklabbt. Sie kleben jetzt an der Wand. Hab den Code von 5c0rp10n, falls einen Wissen will, wie ich es gemacht habe. Danke für eure Hilfe...
Mfg, Pingulord
3D Gamestudio A7 Extra
|
|
|
Re: Einschussloch
[Re: Martek]
#159659
10/08/07 18:08
10/08/07 18:08
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
Serious User
|
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
@Fear411 o gott, damit hatte ich auch Probleme...das klappt nämlcih bei 6.6 und 7 nicht mehr... und ja, ich hab das mit dem ausblenden ganz vergessen...sonst wird das wirklich unschön^^° also ich mach es meistens so: einfach gaaaanz langsam asufaden, dass es gar nicht auffällt (und realistischer ist als plöp und weg  ) Code:
//ans ende der bullet-hole function setzen my.transparent=on; my.alpha=100; while(my.alpha>0) { my.alpha-=1; wait(-1);//200 sekunden->laaangsam } ent_remove(me);
Last edited by 5c0rp10n; 10/09/07 12:30.
|
|
|
Re: Einschussloch
[Re: Scorpion]
#159660
10/09/07 11:40
10/09/07 11:40
|
Joined: Jul 2007
Posts: 288 Germany, NRW
Martek
OP
Member
|
OP
Member
Joined: Jul 2007
Posts: 288
Germany, NRW
|
Meinst du nicht "while(my.alpha > 0)" weil bei "while(my.alpha > 100)" ist alpha ja 100, also nie größer als 100. Also müsst das doch "while(my.alpha > 0)" sein... Und ich würde auch noch nach der while schleife ein "ent_remove(me);" einfügen, damit das sprite dann auch ganz verschwunden ist...
Kann auch sein wenn ich mich irre, aber ich meine es müsste so sein...
Mfg, Pingulord
Last edited by Pingulord; 10/09/07 11:54.
3D Gamestudio A7 Extra
|
|
|
Re: Einschussloch
[Re: Scorpion]
#159662
10/10/07 13:29
10/10/07 13:29
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
@5c0rp10n
ich mach es in A7 so und es geht: my.DECAL = ON; my.oriented = on;
|
|
|
Re: Einschussloch
[Re: Scorpion]
#159664
10/10/07 15:24
10/10/07 15:24
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
das ist meine funktion
function hithole() { vec_to_angle (my.pan, normal); // orient the hit hole sprite correctly vec_add(my.x, normal.x); // move the sprite a bit away from the wall my.passable = on; // the hit hole bitmap is passable my.DECAL = ON; my.transparent = on; // and transparent my.alpha = 85; my.ambient = 50; my.flare = on; my.oriented = on; // the sprite is oriented my.overlay = on; //my.roll = random(360); // and has a random roll angle (looks nicer this way) my.scale_x = 0.2; // we scale it down my.scale_y = my.scale_x; // on the x and y axis sleep (10); // show the hit hole for 20 seconds ent_remove (my); // and then remove it }
|
|
|
Re: Einschussloch
[Re: Scorpion]
#159666
10/11/07 12:13
10/11/07 12:13
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
ja das ist ein altes script das ich kopiert hab und my.decal dazu geadded hab,das änder ich noch.
|
|
|
|