![]() |
setimgpart
1 Attachment(s)
alright, im working on this project and I need to know how to do this. I have been experimenting and its not working. I need to know how to take a gif such as the attachment included (not the one im actually using) and do it so if a player is facing left and weapon is fired it shows one part of the gif and if there right it shows another and so on. If you got any idea please help.
The gif included is a bomy and i just used this as an example. |
NPC Code: that would be kidna how you would do it, i think. |
I think it is accept, how do i add the picture in so it knows what picture to take the part from?
|
ill check up on that, but im pretty sure i know how to do it
|
NPC Code: This would be the right code. |
wow thanks. :D I been experimenting with this alot and it works but its hard to figure out what coords to use for what part. Is there an easy way to do this rather than entering random coords?
|
If you have a nice image editor like Adobe or PSP, those programs give you the coords at which ur mouse is at. So its very easy to find coords.
|
Oh thanks man. I got psp7 that i got from a website (warez) and I will go try and use that =D
|
Quote:
|
umm the first ones are x and y and the second are the width and height of it. so setimgpart example.png x,y,width,height
|
I just dont know because I got the coordinates on psp and i have them but i dont know if they go in x,y or width,height
:( |
Its kind of hard to explain how to use psp to get the coords and stuff. But just play around with the selection tool and im sure u will figure it out.
|
alright heres what i got. I see the coords in the bottom left of PSP. I get the coords of the top left of the part of the picture i want. I then drag the selection tool down over the picture so i have it completely in a box and more coords appear next to the first. I put the first coords in the x and y. and the second set in the width and height. For some reason it gets more than the picture though so im not sure =\
|
Here is how you would show the 4 directions of a bomy:
NPC Code: |
thats cool but i need to know how to find the numbers for the x,y,width,height part of it.
|
1 Attachment(s)
Look at the attachment, you might get the point of where to get the coords and width and height from it.
|
oh ok thanks. How do i get that? just drag that little selection square thing over the area that I want to appear??
|
yes, but dont release the selection.
|
Quote:
NPC Code:setimg bomy_chamo3.png; //Yes it's PNG And then you'd need to script the proper sprites for it to use. |
Lady Midnight is so smart :eek:
|
| All times are GMT +2. The time now is 11:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.