![]() |
Reverse engineer this npc
1 Attachment(s)
Another challenge, a fairly easy one if you know a little trig for starters:
Given this attaced image, write the code that will produce a similar image. some hints: the image is showimg of @O (thats the letter O there not number 0) the only trig functions i use are sin() and cos() let see how fast you can whip this out. |
wow, a whole 17 minutes... also factoring he didn't see it as soon as it was posted... wonder if he even had to open graal
|
wut if he DIDN'T? :megaeek:
|
I can't do all that trig and stuff, I have this hacked-up version of the Flame Spiral which I use to do circle stuff.
|
Hmm... I have something that will do a circle, I am at school so I can't play much w/ it :P
if (created) {this.circles; this.angle=1; this.distance; for (i=0;i<this.circles;i++) {this.x=sin(this.angle)*this.distance; this.y=cos(this.angle)*this.distance; showimg 65+i@O,this.x,this.y;} } ---Shifter |
R0bin: This is a modification of Kaimetsu's code, and if you use it in graal with a black background, a wierd (as in scary) pattern emerges.
NPC Code: |
OoOoOo
1 Attachment(s)
Kewl stuff!
Nice work Kai and R0bin! I mutated it even more.. used sin and cos to make a box... Kind of a tunnel effect that reminds me a little bit of the electric walls that Neo sees in the movie The Matrix... also used light2.png, lighting effects.. |
also
1 Attachment(s)
if by some off chance you dont have the light image
here it is... |
You and you're scripting challeneges, he he. You want me to teach you some NPC Server stuff still?
---Shifter |
well i need to XD
|
Re: OoOoOo
Quote:
|
You know, light4.png is much nicer looking then light2.png O.o
|
1 Attachment(s)
I haven't been able to post till now but this thread inspired me to make this.... attached script gani...
|
Uhh it inspired you to make a copy of the default idle.gani?
|
Use it in graal foo ;-)
I said script gani. |
Heh my bad
|
| All times are GMT +2. The time now is 09:42 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.