Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-23-2001, 11:28 AM
r_u_f_u_s r_u_f_u_s is offline
Registered User
Join Date: Nov 2001
Posts: 220
r_u_f_u_s is on a distinguished road
Sprites

Will someone please give me an example of how to use sprites, and changing images to move them, etc.? I have tried, but I can never get the image lined up correctly :-(
__________________
- ¤Mā×Īmū§¤ - Owner of Delteria - (borrowing account)
Reply With Quote
  #2  
Old 11-23-2001, 07:57 PM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

if you want to change a player's sprite, use
// This would make the player appear dead when he enters.
if (playerenters) {playersprite=40;
}

for npc sprites, use sprite=22; or any number 1-40.
as for the image stuff, what the hell are you talking about?
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #3  
Old 11-23-2001, 11:05 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
no i think he ment making gani....alot of people call sprites gani for some reason...he wants to know how to add the image in.


once you click add on the bottom, there are 2 option menus. for for a consistantly adding one (if all sprites are in one pic and are evenly spaced) other (top one) is for adding single images.
i will explain the single images.
image:here yo put just the name of your image make sure its within your graal dir.)
description:here you put your own description of the sprite (like gun-left or gun-right)
sprite index: here you give the sprite an index (this number has to be differerent for each picture you enter in)
x,y,height,width: x and y are the starting point on the picture whee you will be taking the image from. ( if its just a single image and you want the whole thing just use 0,0 =p) and height and width are the shape of he tbox where the image will be formed example
x:0 y:0 height:32 width:32 this will simply give me an image that has a height of 32 and a width of 32.

ok that about as detailed as it will get. if you have any more questions please pm me on the forums.
Reply With Quote
  #4  
Old 11-23-2001, 11:09 PM
r_u_f_u_s r_u_f_u_s is offline
Registered User
Join Date: Nov 2001
Posts: 220
r_u_f_u_s is on a distinguished road
Alright thanks man, I'll give it a shot
__________________
- ¤Mā×Īmū§¤ - Owner of Delteria - (borrowing account)
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 07:59 PM.


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