MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 11 12 13 14 15 16 Next »
How To Do DKC Banana Fly To HUD Effect?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 11 12 13 14 15 16 Next »
How To Do DKC Banana Fly To HUD Effect?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 11 12 13 14 15 16 Next »
How To Do DKC Banana Fly To HUD Effect?
Mark All Posts Read Today's Posts

How To Do DKC Banana Fly To HUD Effect?
Canada Syaxamaphone
Cute!
Members
Submitter Iso Collab Contributor (2) Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up (2) Drawing Comp Runner-Up Drawing Comp Top 5 Super Comp Winner Super Comp Runner-Up Super Comp Top 5 Game of the Month Winner NCFC Contributor Secret Santa Holiday Tree (2) Super Rolling Mario Good Citizen MFGG 17th Anniversary MFGG 18th Anniversary MFGG Awards 2014 Winner MFGG Awards 2016 Winner MFGG Awards 2017 Winner
#2
05-26-2018, 09:16 PM (This post was last modified: 05-26-2018, 09:19 PM by Syaxamaphone.)
What I think would be the easiest would be having the banana create a seperate bananaCollected object (or whatever you want to call it) and then having that object do the following code in its step event:

Code:
direction = point_direction(x,y,HUDX,HUDY);
speed = 6; //this can be whatever

if point_distance(x,y,HUDX,HUDY) < 6 {
   bananas+=1;
   instance_destroy();
}

Obviously you'll need to change some variable names depending on what your variables are actually called (I don't know how you're storing banana count for example), but this should work.

The basic process would be to have the banana you collect change into the banana collected on collision with your kong, then have this object work its magic.

HUDX and HUDY could probably just be view_xview and view_yview if you're keeping bananas on the top left of the screen.
My games | My twitter | My stream | Sprites Unlimited

[Image: A1BH1oG.png]
[-] The following 1 user Likes Syaxamaphone's post:1 user Likes Syaxamaphone's post
  ↳ Spritanium
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
How To Do DKC Banana Fly To HUD Effect? - by Yoshi2000 - 05-26-2018, 08:30 PM
RE: How To Do DKC Banana Fly To HUD Effect? - by Syaxamaphone - 05-26-2018, 09:16 PM
RE: How To Do DKC Banana Fly To HUD Effect? - by Yoshi2000 - 05-27-2018, 02:46 AM
RE: How To Do DKC Banana Fly To HUD Effect? - by Mariotroid - 05-26-2018, 11:59 PM
RE: How To Do DKC Banana Fly To HUD Effect? - by Syaxamaphone - 05-27-2018, 02:28 PM
RE: How To Do DKC Banana Fly To HUD Effect? - by Yoshi2000 - 05-27-2018, 02:29 PM

  • View a Printable Version
Forum Jump:

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

Linear Mode
Threaded Mode