Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2001, 10:22 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
testimage(x,y)

just like testnpc but for showimg.

You would prabably have to implement things like.

image[index].x
image[index].y
image[index].width
image[index].height
image[index].type
showimg index,image,x,y;
imgtype index,5;

Now you can check for the image with the specified type.

Like if you have a bunch of images in a level and only want to detect certain one's you can change the type and check for that.

etc... surely there are more things....


There could be many use's for this im sure. And several I can think of right now.


NPC Code:

if (playerenters){
for (this.i=0;this.i<10;this.i++){
xys[this.i+0]=random(0,64);
xys[this.i+1]=random(0,64);
xys[this.i+2]=random(-1,1);
xys[this.i+3]=random(-1,1);
showimg this.i,stone.gif,xys[this.i],xys[this.i+1];
imgtype this.i,5;
}
timeout=.05;
}

if (timeout){
for (this.i=0;this.i<arraylen(xys);this.i+=4){
xys[this.i+0]+=xys[this.i+2];
xys[this.i+1]+=xys[this.i+3];
showimg this.i,stone.gif,xys[this.i+0],xys[this.i+1];
}
timeout=.05;
}

// insert into npc trying to test for these randomly flying rocks
// with a type of 5

function test(){
for (this.i=0;this.i<imagescount;this.i++){
if (images[this.i].type==5){
if (testimage(x,y)==this.i){
putexplosion2 3,0,x,y;
}
}
}
}




... I hope that conveys the idea...
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #2  
Old 12-07-2001, 04:34 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #3  
Old 12-08-2001, 12:13 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam

*bangs head on wall*
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #4  
Old 12-08-2001, 12:25 PM
Qwert616 Qwert616 is offline
Possibly Possessed
Qwert616's Avatar
Join Date: Sep 2001
Posts: 4,694
Qwert616 is on a distinguished road
I...don't get it sorry

(posting so you dont go crazy )
Reply With Quote
  #5  
Old 12-09-2001, 04:32 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
a reply@!


But im looking for comments@!#
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 12-10-2001, 02:33 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
*waits for comments from smart people who know stuff*


*waits some more*
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #7  
Old 12-10-2001, 10:31 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Image stuff would be good.. But isnt it a little bit uselss?
__________________

subliminal message: 1+1=3
Reply With Quote
  #8  
Old 12-11-2001, 01:02 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I find it easier to make an asteroid field with showimg than just npc's...


my asteroids script could all be in one script (asteroids included) with testimage(x,y) and type.


There is no accurate way to do it otherwise. well almost.

But I'd rather not do that hehe.

I have other things to do like school
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #9  
Old 12-11-2001, 02:05 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Yeah i think stefan should start and choose some ideas and make them happen.
__________________
--Spark911
Reply With Quote
  #10  
Old 12-20-2001, 12:46 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
It would be nice if Stefan set out to make the most powerful scripting engine any game has ever seen. But he didn't
He is simply out to make a fun game full of little things like golf. Not that that is bad or anything.
It would be nice if we had a much more powerful scripting language. With which we can do many many more things.

I mean right now it can't even do some basic snes stuff. If we could at least emulate snes quality stuff like image rotation *wink wink* man the effects would take a skyrocket up there!
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #11  
Old 12-21-2001, 12:34 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
That'd be cool, but mostly, setimgrotate is a command I want to see, you can do alot of the other stuff with arrays...the width and height would be nice, though...
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #12  
Old 12-21-2001, 02:55 PM
Juron Pilo Juron Pilo is offline
Registered User
Juron Pilo's Avatar
Join Date: Apr 2001
Posts: 1,095
Juron Pilo is on a distinguished road
we have traveled down this road many times... imgrotation AINT GONNA WORK... I asked about this LONG AGO... GIVE IT UP
Reply With Quote
  #13  
Old 12-21-2001, 07:39 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It's not the script language, its the problem
that many gfx cards don't support it.
It would be take ~5 minutes to add
image rotation, but only people with Direct3D
support could see it, so you couldn't use
it for important stuff.
Reply With Quote
  #14  
Old 12-21-2001, 10:05 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Quote:
Originally posted by Stefan
It's not the script language, its the problem
that many gfx cards don't support it.
It would be take ~5 minutes to add
image rotation, but only people with Direct3D
support could see it, so you couldn't use
it for important stuff.
well that really wouldnt matter because i bet most ppl that play graal can and if they wanted to play grall with kool stuff then they would upgrade there cpu so hat they could
__________________
Reply With Quote
  #15  
Old 12-21-2001, 11:35 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Stefan
It's not the script language, its the problem
that many gfx cards don't support it.
It would be take ~5 minutes to add
image rotation, but only people with Direct3D
support could see it, so you couldn't use
it for important stuff.
Possibly add a 'direct3dsupported' flag, so that we can check for it, and give people an alternative if they can't
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #16  
Old 12-22-2001, 01:58 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Hang on...Stefan, surely you could rotate an image 90 degrees without Direct3d, yes? It's just a matter of drawing it top-to-bottom instead of left-to-right...sure, it's a bit complicated, but I could make an NPC rotate a showimg 90 degrees practically in my sleep...
Maybe it shows the smooth rotations for D3D people and the 90 degree rotations for the unupgraded?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #17  
Old 12-22-2001, 08:15 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Re: testimage(x,y)

Quote:
Originally posted by adam
just like testnpc but for showimg.

You would prabably have to implement things like.

image[index].x
image[index].y
image[index].width
image[index].height
image[index].type
showimg index,image,x,y;
imgtype index,5;

Now you can check for the image with the specified type.

Like if you have a bunch of images in a level and only want to detect certain one's you can change the type and check for that.

etc... surely there are more things....


There could be many use's for this im sure. And several I can think of right now.


NPC Code:

if (playerenters){
for (this.i=0;this.i<10;this.i++){
xys[this.i+0]=random(0,64);
xys[this.i+1]=random(0,64);
xys[this.i+2]=random(-1,1);
xys[this.i+3]=random(-1,1);
showimg this.i,stone.gif,xys[this.i],xys[this.i+1];
imgtype this.i,5;
}
timeout=.05;
}

if (timeout){
for (this.i=0;this.i<arraylen(xys);this.i+=4){
xys[this.i+0]+=xys[this.i+2];
xys[this.i+1]+=xys[this.i+3];
showimg this.i,stone.gif,xys[this.i+0],xys[this.i+1];
}
timeout=.05;
}

// insert into npc trying to test for these randomly flying rocks
// with a type of 5

function test(){
for (this.i=0;this.i<imagescount;this.i++){
if (images[this.i].type==5){
if (testimage(x,y)==this.i){
putexplosion2 3,0,x,y;
}
}
}
}




... I hope that conveys the idea...

um....

let me go find the post where I POSTED ABOUT THIS FIRST >:o
Reply With Quote
  #18  
Old 01-08-2002, 12:34 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Re: Re: testimage(x,y)

Quote:
Originally posted by Warcaptain



um....

let me go find the post where I POSTED ABOUT THIS FIRST >:o
Perhaps you did mention it first.

But I just thought up a use for it so blah I posted it again. And It came from my mind. And I scripted that example from scratch on the spot. blah blah blah.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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