The Daily Click ::. Forums ::. Klik Coding Help ::. finding distance in mmf2
 

Post Reply  Post Oekaki 
 

Posted By Message

Werbad



Registered
  18/09/2002
Points
  235
25th August, 2006 at 12:08:49 -

You couldn't get distance in KnP since it didn't have an advanced expression editor nor extension support... The closest would be to get the difference in X or Y position...
But it was like 5 years since i last used KnP so i don't remember that well

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
25th August, 2006 at 12:50:16 -

He's using MMF2, not KNP.
Or are you replying to somebody else?

 
This is a signature. Have this one on me.

Sephirenn

Possibly Insane

Registered
  15/01/2002
Points
  2343

360 OwnerPS3 OwnerWii OwnerI am an April FoolVIP MemberGOTW JUNE 2010 WINNER!
25th August, 2006 at 16:02:34 -

ORRRR, you could judt make a circle radius 50, have it invisible, and its always attached to center of the bullet, then when it touches or overlaps the character, have it chase him

 
*Sephirenn*

Wicked Studios



Registered
  25/10/2004
Points
  460
25th August, 2006 at 17:05:45 -

angle calculator hasnt been ported to mmf2 yet (at least i think) and the distance formula I tried did look like something Radix did although i probably ended up typing something in wrong cuz it didnt work. i'll try again and let you all know, and thanks for all the help

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

Wicked Studios



Registered
  25/10/2004
Points
  460
25th August, 2006 at 17:07:33 -

thanks for the heads up on that extension flava, it seems when i read this the first time i must've skipped right past your post lol.

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
26th August, 2006 at 02:36:54 -

You couldn't get distance in KnP since it didn't have an advanced expression editor nor extension support... The closest would be to get the difference in X or Y position...

Fail.
Image

The only limitation is that you have to use alt values instead of brackets and you're finding the square of the distance, not the distance itself.

 
n/a

Werbad



Registered
  18/09/2002
Points
  235
26th August, 2006 at 04:30:09 -

Never thought about that! It's not the same way as in MMF but it works! nice!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click