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

Pages (2): « Previous 1 2
THE RESOURCE TOPIC
Spain Gate
Your local demolitionist cat!
Main Site Admin
Global Moderator Forum Admin Forum Moderator Main Site Admin Main Site Moderator Submitter Iso Collab Contributor (2) Sprite Comp Runner-Up Minigame Comp Winner (2) Minigame Comp Top 5 (3) Special Comp Winner Egg Hunter NCFC Contributor (3) Secret Santa Holiday Tree MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2017 Winner MFGG Awards 2018 Winner MFGG Awards 2019 Winner MFGG Awards 2023 Winner (3) MFGG Awards 2024 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: BvmA5Pf.png][Image: 6L4ceD0.png][Image: LAKfOPp.png][Image: 10CGjip.png][Image: gEIdmj2.png]

[Image: 8GCySLU.png]

"shy guys are wall plugs confirmed" - Vitiman on Club Saturn Ex

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): « Previous 1 2


  • View a Printable Version
Forum Jump:

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

Linear Mode
Threaded Mode