Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sprites (https://forums.graalonline.com/forums/showthread.php?t=17653)

r_u_f_u_s 11-23-2001 11:28 AM

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 :-(

mikepg 11-23-2001 07:57 PM

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?

royce 11-23-2001 11:05 PM

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.

r_u_f_u_s 11-23-2001 11:09 PM

Alright thanks man, I'll give it a shot :)


All times are GMT +2. The time now is 12:07 AM.

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