Go Back   kirupaForum > Flash > ActionScript 1.0/2.0

Reply
 
Thread Tools Display Modes
Old 07-24-2009, 12:43 AM   #1
kei10
Registered User
Vector Intersection to Pseudo

Hello and i hope i posted on correct forum title and I need the answer as quick
as possible because I'm having a competition of some sort of.....

In Flash Action Script Language Form the code of Vector Intersection will be in this way:

Code:
v3={vx:v2.p0.x-v1.p0.x, vy:v2.p0.y-v1.p0.y};
var t=perP(v3, v2)/perP(v1, v2);
ip={};
ip.x=v1.p0.x+v1.vx*t;
ip.y=v1.p0.y+v1.vy*t;
function perP(va, vb){
    pp = va.vx*vb.vy - va.vy*vb.vx;
    return pp;
}
The following code can be found here: http://www.tonypa.pri.ee/vectors/tut05.html

But in normal Pseudo or any simpler form of script can someone translate it for me?
Assume in this example:

Programming Language:
Code:
x += y
To
Code:
x = x + y
Anyway, I'm pretty Sick & Suck in flash with tha vector Intersection script given above.
I worked for a day still can't find out how to work it in normal form.
I use "Game Maker" by Markover Mars as my main platform language.
And i need to work that thing in game maker (GML) language.

Thanks,
Kei-Kun.
kei10 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 07-24-2009, 11:24 AM   #2
kei10
Registered User
Come on, please help us this thread.....
Why no one is going to reply?!?
kei10 is offline   Reply With Quote
Old 07-24-2009, 11:43 AM   #3
senocular
If you can read this, I'm
 
senocular's Avatar
Location San Francisco, CA (USA)

Posts 17,266
This is a Flash ActionScript forum. I doubt many people here know GML. Code porting requests are also often frowned upon, so it might be hard to find help.

__________________
senocular is offline   Reply With Quote
Old 07-24-2009, 11:48 AM   #4
kei10
Registered User
Quote:
Originally Posted by senocular View Post
This is a Flash ActionScript forum. I doubt many people here know GML. Code porting requests are also often frowned upon, so it might be hard to find help.
I really hoped that you know what i meant.
I just need to know how that thing works without something like this:

Code:
v3={vx:v2.p0.x-v1.p0.x, vy:v2.p0.y-v1.p0.y};
Maybe a little more simple in to x and y other than that thing it's confusing
for me.....

Reply please.
kei10 is offline   Reply With Quote
Old 07-24-2009, 07:06 PM   #5
kei10
Registered User
What? No one's replying?
bump.....
kei10 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 -4. The time now is 05:20 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com