Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-19-2004, 10:23 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
setshape2

Quote:
- setshape2 width,height,{tiletypes,...}
Lets the npc behave like a level, which means you can set
what size it has (in tiles) and how the tiles behave;
e.g. do setshape2 2,2,{3,3,3,3}; to make an npc that behaves
like a chair. Following tile types are supported:
0 nonblocking
2 hurting underground
3 chair
4 bed upper side
5 bed lower side
6 swamp
7 lava swamp
8 near water
9 near lava
11 water
12 lava
20 throw-through (fences)
21 jumping stone
22 blocking tile
My idea:
23 transparent nonblocking.
24 transparent blocking.

That part of the image will be transparent.

C&C?
__________________
-Kjetil Valen
Reply With Quote
  #2  
Old 01-19-2004, 10:31 PM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
This is useless...? Could you clarify why you want this?

Use seteffectmode 2;
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #3  
Old 01-19-2004, 10:46 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Thought
This is useless...? Could you clarify why you want this?

Use seteffectmode 2;
or:
NPC Code:

seteffectmode 1;
setcoloreffect 0,0,0,0;



That works too

Or just use setshape on an NPC with no image. Its not that hard to do Its very useful for a multitude of things.
__________________
Reply With Quote
  #4  
Old 01-19-2004, 10:49 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally posted by Thought
Use seteffectmode 2;
Remove the colors? How would that work when you want to make 16x16 pixels of an image transparent?

EDIT:
Let's say I want to use this with block.png. What would i do if I wanted the top left corner transparent?
__________________
-Kjetil Valen
Reply With Quote
  #5  
Old 01-19-2004, 10:53 PM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Quote:
Originally posted by VeX_RaT_Boy

Remove the colors? How would that work when you want to make 16x16 pixels of an image transparent?

EDIT:
Let's say I want to use this with block.png. What would i do if I wanted the top left corner transparent?
I thought seteffectmode 2 was sectionalized transparency?

Besides, just make the PNG transparent... that's not hard?
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #6  
Old 01-19-2004, 11:15 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Say that it is a 128x128 image. Instead of making 64 diffrent images, this option would be great!
__________________
-Kjetil Valen
Reply With Quote
  #7  
Old 01-19-2004, 11:53 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Then why not just use tiles to do it? That is if you're not using terrain. What exactly are you trying to do? Have you considered asking for help with what you're doing? Someone might have a good idea or method that does what you're looking for.
__________________
Reply With Quote
  #8  
Old 01-20-2004, 12:10 AM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally posted by G_yoshi
Then why not just use tiles to do it? That is if you're not using terrain. What exactly are you trying to do? Have you considered asking for help with what you're doing? Someone might have a good idea or method that does what you're looking for.
Theres nothing specific I'm after. If there was, I'm 90% sure that I would've find a sulution myself.

Also, the tiles thing would be good, but what if the image was not of tiles?

I just thought this would be a good idea, and I still think that.
__________________
-Kjetil Valen
Reply With Quote
  #9  
Old 01-20-2004, 12:19 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by VeX_RaT_Boy

Theres nothing specific I'm after. If there was, I'm 90% sure that I would've find a sulution myself.

Also, the tiles thing would be good, but what if the image was not of tiles?

I just thought this would be a good idea, and I still think that.
addtiledef2 for the thing about it not being tiles

Seriously, this isn't something that is needed when there are better ways to do it. For example, just make one image for all the different combinations, put them in a gani and use params to control the appearance, and use an NPC for the script that knows what kind of tile field to setup based upon the given param.

Something that would be more useful, though as a special effect, are effects like water ripples or realtime shadow casting The shadow casting, however might be a tad more difficult since its all 2D sprites :x But there are ways around such barriers.
__________________
Reply With Quote
  #10  
Old 01-22-2004, 10:22 PM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
I see the usefulness if you wanted to do this dynamically, e.g. hide a middle square if it the boat gets shot or something, but not if it was supposed to be like that all the time.

If you have a 128x128 image, and want to cut something out and have a transparency, why the hell would you need 64 different images?
__________________
Reply With Quote
  #11  
Old 01-24-2004, 06:25 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
It can also be done with a gani

Every tile you wanted to be able to hide, use a parameter, but I think the limit on that is 30 :x Or make a series of ganis using the image parts or whatever. Really, I don't see a need for such a thing anyway
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:39 PM.


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