Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Red This Cool Thing Its So Cool U Wont Believe Ur Eyes! (https://forums.graalonline.com/forums/showthread.php?t=13048)

Vinvect 09-27-2001 05:05 AM

Read This Cool Thing Its So Cool U Wont Believe Ur Eyes!
 
:D okay im makin a game where u control a ball that bounces around then when u start you have to touch a brown block with a color in the middle then ur ball changes to that color. then you have to touch a fully colored block thats the same color.
the only thing i wanna know is how to make stuff bounce leik hazards leik sumthin that keeps on bouncing left and right, or up and down.ok thanx its gonna be cool so dont think its gonna be ugly.oh yea only one of my friends can test if u ask leik esiah, u can try and ownerofbabylon, u can test it too and
kamistu (r however u spell it) can test it. and liqidice (owner of unholy nation) and brady2 and stuff leik that blah..:megaeek:

freddyfox 09-27-2001 05:08 AM

?

Merlin 09-27-2001 05:08 AM

?111111111?1111111
DIEUYRDIDHYEKFNDSJNGFJSDNGJD G :WOMP:

Vinvect 09-27-2001 05:51 AM

Why Wont THis Work?
 
Why Wont This WOrk?
NPC Code:

if (playery=49){playery--;
set up;
unset down;
}
while(up){
playery--;
}
if(playery=11){
playery++;
unset up;
set down;
}
while(down){
playery++;
}


and dont say flags suck and OH NOO I HATE FLAGSS! plz. thx.
and post a script that works for this plz.

nyghtGT 09-27-2001 05:57 AM

flags
 
flags suck dude ...

lordhelmut 09-27-2001 05:59 AM

...hmm....it works perfectly, it move itself up 1000 times if up is set
and moves itself down 1000 times when down is set

or maybe you wanted it to have a sleep command in there somewhere?

nyghtGT 09-27-2001 08:20 AM

variables
 
i prefere the variable approach a lot better:
NPC Code:

if (playery=49){playery--;
this.varup=1;
this.vardown=0;
}
while(#v(this.varup=1)){
playery--;
}
if(playery=11){
playery++;
this.varup=0;
this.vardown=1;
}
while(#v(this.down=1)){
playery++;
}


that may work ....

Merlin 09-27-2001 08:28 AM

if (playerenters||created) {
timeout = .5;
}
if (timeout) {
timeout = .5;
if (playery = 49) {
playery--;
this.dir=up;
}
if (this.dir==up) {
playery--;
}
if (playery==11) {
playery++;
this.dir=down;
}
if (this.dir==down) {
playery++;
timeout = .2;
}
}

you need the timeout to make it looped

Vinvect 09-27-2001 08:31 AM

nun of those work

nyghtGT 09-27-2001 08:32 AM

Quote:

Originally posted by Merlin
you need the timeout to make it looped
Thats right ... thanx for correcting me ....

Shard_IceFire 09-27-2001 08:47 PM

Precisely!

freddyfox 09-27-2001 09:14 PM

Quote:

Originally posted by Kaimetsu
Use velocities instead of direction-specific changes.
Velocowhats?

You're speaking alien to me, Kai. ;)

Sep3kP2P 09-27-2001 10:37 PM

they're where yer moving, not what direction you're facing ;) but i still don't know how to use 'em

Sep3kP2P 09-27-2001 11:03 PM

velocities, am i wrong =(

Sep3kP2P 09-27-2001 11:37 PM

hooray, i was right for once =)

Sep3kP2P 09-27-2001 11:52 PM

well, i dont know exactly how to use velocities, and i dont know what/how to use vectors, do they have something to do with arrays?

Sep3kP2P 09-28-2001 01:30 AM

didnt think so...

lordhelmut 09-28-2001 09:41 AM

do they have to do with kaimetsu's !@#$?

Enigma_GP4 09-28-2001 09:56 PM

lol
Im confused

entravial 09-29-2001 02:46 AM

~AlphaFlame~

*plays around in boredom*

if (playerenters){
timeout=.05;
this.dir=2;
this.velocity=.5;
}
if (timeout){
playery+=vecy(this.dir)*this.velocity;
if (playery<11 && this.dir=0){this.dir=2;this.velocity-=.5;}
if (playery>50 && this.dir=2){this.dir=0;this.velocity-=.5;}
if (playery in |11,50| && this.velocity<2){this.velocity+=.01;}
timeout=.05;
}

Hmm... *tilts head* y'know... I don't think I got what Kaimetsu meant by velocity either :D

*shrug* Oh well, at least it bez bouncy and shortish...

SSj_Link 09-29-2001 02:47 AM

Well, you see
the velocity of the lips times the vector of his @$$ that they kiss equals how much time it takes to kiss Kais @$$ !

entravial 09-29-2001 11:43 AM

Quote:

Originally posted by SSj_Link
Well, you see
the velocity of the lips times the vector of his @$$ that they kiss equals how much time it takes to kiss Kais @$$ !
if (created){
graal.Kaimetsu=#s(laughing-at-idiot);
graal.idiot=SSj_Link;
}


All times are GMT +2. The time now is 11:01 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.