Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-05-2012, 06:01 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Images along a line

I wanted to ask, how you could show images along a line. Letīs say my line starts from:
x: 2
y: 3

and ends at:
x: 50
y: 36

I know how I could use it with a poly.
PHP Code:
showpoly(200, {x1y1x2y2}); 
What I want is to have images along that line. Thatīs also not hard since I could stretch an Image (in case the length doesnīt match)
Click image for larger version

Name:	Unbenannt3.png
Views:	269
Size:	2.5 KB
ID:	54164
but how could I have, lets say a 16x16 pixel image, shown over and over on that line without stretching it?
Examples below (done in Paint.NET)
Click image for larger version

Name:	Unbenannt.png
Views:	290
Size:	2.2 KB
ID:	54162
Name:  Unbenannt2.png
Views: 235
Size:  2.1 KB

I thought I had seen such a script around but couldnīt find it anymore. Can anyone of you help me?
__________________
MEEP!
Reply With Quote
 


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 06:05 PM.


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