View Single Post
  #2  
Old 01-16-2015, 05:35 AM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is a jewel in the roughMysticalDragon is a jewel in the rough
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Quote:
Originally Posted by Alpho View Post
Hello!

I'm trying to make a cape system. What is the best way of going about this? I was thinking a script within a gani and setting that as an attr on your player, but then you have the problem where sprites move around (walking gani for example). Is there any way to find the position of a certain sprite? Maybe there's an easier way of going about this?

Thank you!
Inside a gani you could do;
PHP Code:
SCRIPT
function onPlayerEnters() {
  
with findImg100 ) ) {
    
image player.attr[#];// Image of Cape
    
layer 2;
    
attachToOwner true;
    
attachOffset = { -1, -3};
  }
}
SCRIPTEND 
But from my knowledge there is no way to tell exactly where the sprite location is inside the gani, at least not that i know of. Although there is getspriteforspritepos(obj) - returns object, but i never used it.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote