![]() |
anyone knows how to get a light effect
:)
i saw the fire work thingie that was posted on this forum bud i cant really figur out how to make moving light effects my self can anyone teach me or post a example thank u :megaeek: |
if (created){
setimg light2.png; drawaslight; setcoloreffect 0,1,1,0.5; setzoomeffect 1.5; } Elite looking blue light. |
yes but hes talking about making them spin etc
making the spin is easy just use sin, cos |
Quote:
like the ones in birdbirds house |
=D
thats the problem i want them moving i dont understand the cos thing
|
is lookie a word o.O
|
=)
yeah cool i see
bud how do i make it go spin arround or something like in the graaloween party level on 2k1 or like the water fall close to the crafting house:) |
I just wish I could see em period
|
Re: Re: =D
Quote:
|
?
mean this one
// NPC made by aylad if (playerenters || wasthrown) { // Initialize the this. variables dirgo = {0,-1,-1,0,0,1,1,0}; timeout = 0.05; this.walkmode = 1; if (wasthrown && this.walkmode>1) this.walkmode = 1; this.x1 = 0; this.x2 = 63; this.y1 = 0; this.y2 = 63; this.speed = 0.08; this.mode = 0; this.runcounter = int(random(10,40)); } // Walking stuff if (timeout && this.mode==0) { // WALKING newx = x + dirgo[dir*2] * this.speed; newy = y + dirgo[dir*2+1] * this.speed; this.runcounter--; if (this.walkmode==1) { // RANDOM if (this.runcounter>0) { testx = newx + 1.5 + dirgo[dir*2]; testy = newy + 2+ dirgo[dir*2+1]; if (onwall(testx,testy)) { dir = (dir+2)%4; this.runcounter = int(random(0,60)); } else { x = newx; y = newy; } } else { this.runcounter = int(random(10,40)); dir = (dir+1+int(random(0,2))*2)%4; } } else if (this.walkmode==2) { // LEFTRIGHT if (dir!=1 && dir!=3) dir = 3; else { x = newx; y = newy; if ((dir==1 && x<=this.x1) || (dir==3 && x>=this.x2)) dir = (dir+2)%4; } } else if (this.walkmode==3) { // UPDOWN if (dir!=0 && dir!=2) dir = 2; else { x = newx; y = newy; if ((dir==0 && y<=this.y1) || (dir==2 && y>=this.y2)) dir = (dir+2)%4; } } else if (this.walkmode==4) { // RECTANGLE x = newx; y = newy; if ((dir==0 && y<=this.y1) || (dir==1 && x<=this.x1) || (dir==2 && y>=this.y2) || (dir==3 && x>=this.x2)) dir = (dir+3)%4; } if (this.walkmode>1 && this.runcounter<=0) this.runcounter = 20; message; timeout = 0.05; } |
uh...................
im trying to learn with getting examples, caus i cant understand much of the newbie scripters bible
|
got it
i gave the lights a walking script and it works fine thank u all for your good advise:D
|
use the predefined npc lights, then change the red, blue, and green values to something between 0 and 255
|
Are you talking about this:
NPC Code: ? cos and sin are reverse of eachother, so that means when cos is going up sin is going down on the same number. ;) |
?
it doesnt really moves how can i make it move:)
|
Quote:
|
.......
thats verry bad of i wouldnt ask if i knew caus i dont understand the hole thing only that apperently you get a circle if ya use sin and cos tell me plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
|
........
as many times as noobish scripters ask you:p
|
| All times are GMT +2. The time now is 07:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.