Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #16  
Old 02-11-2010, 09:02 PM
Engine Engine is offline
Registered User
Join Date: Jan 2010
Posts: 70
Engine is on a distinguished road
Shouldn't this make the particle effects find the player? I have tried searching the forums but couldn't find anything about this. Can you even get the particles x/y and change it's angle after it has been emitted?
PHP Code:
function onTimeout(){
  
temp.dx = ((player.x+1.5) - (findimg(200).emitter.particle.x));
  
temp.dy = ((player.y+2) - (findimg(200).emitter.particle.y));
  
findimg(200).emitter.particle.angle getangle(temp.dx,temp.dy);
  
settimer(0.05);

Reply With Quote
 

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:01 PM.


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