MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Development Showcase v
1 2 3 4 5 … 13 Next »
THE RESOURCE TOPIC
MFGG Forums MFGG Development Showcase v
1 2 3 4 5 … 13 Next »
THE RESOURCE TOPIC
MFGG Forums MFGG Development Showcase v
1 2 3 4 5 … 13 Next »
THE RESOURCE TOPIC
Mark All Posts Read Today's Posts

Pages (2): « Previous 1 2
THE RESOURCE TOPIC

Spain Gate
11 years on MFGG
Forum Moderator
x 247

Forum ModeratorMain Site AdminMain Site ModeratorSubmitterIso Collab ContributorSprite Comp Runner-UpMinigame Comp WinnerMinigame Comp Top 5Special Comp WinnerEgg HunterNCFC ContributorSecret SantaHoliday TreeMFGG 17th AnniversaryMFGG 18th AnniversaryMFGG 19th AnniversaryMFGG Awards 2012 WinnerMFGG Awards 2013 WinnerMFGG Awards 2017 WinnerMFGG Awards 2018 WinnerMFGG Awards 2019 Winner
#21
02-10-2020, 04:20 AM
move_contact_object

This script is like the default move_contact_solid but this one can be used for any non-solid object
Code:
///move_contact_object(dir,maxdist,object)

/*
//  Usage:
//      move_contact_object(dir,maxdist,object)
//
//  Arguments:
//      dir         =    Direction
//      maxdist     =    Max. distance
//      object      =    The object to collide with.   
*/

for (i=0; i<argument[1]; i++;) {

    if (place_meeting(lengthdir_x(i,argument[0]),lengthdir_y(i,argument[0]),argument[2])) || (i == argument[1]) {
    
        x = lengthdir_x(i,argument[0]);
        y = lengthdir_y(i,argument[0]);
        exit;
    }
}
[Image: Vb8vjwW.png][Image: uIrDfRP.png][Image: Jd3PZ8y.png][Image: LAKfOPp.png][Image: 5pCoLjq.png][Image: 10CGjip.png]
 
"shy guys are wall plugs confirmed" - Vitiman on Club Saturn Ex
Reply

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode