Jump to content


Photo
- - - - -

Rotatable Menu


  • Please log in to reply
46 replies to this topic

#1 poizen

poizen

    Soft Aqua

  • GMC Member
  • 168 posts
  • Version:GM:Studio

Posted 10 July 2009 - 04:33 PM

  • Title: Rotatable Menu
  • Description: Relatively simple example of how to carry out a rotatable menu with adjustable amount of menu items.
  • GM Version: GM7
  • Registered: Yes (but only because it uses draw_sprite_ext())
  • File Type: .gmk, .gm81
  • File Size: 472 kB
  • File Link (gmk): Here (Mirror, Another mirror)
  • File Link (gm81): Here (Mirror, Another mirror)
Additional Info
This is entirely in GML but all the necessary settings (the amount of menu items, the proportions of the menu circle, the icons and the captions) are easily adjustable.
Posted Image


Give credit if not crediting makes you feel guilty.

Edited by poizen, 23 April 2012 - 04:58 PM.

  • 4

#2 link2991

link2991

    GMC Member

  • GMC Member
  • 281 posts

Posted 11 July 2009 - 07:54 PM

nice can i send you the lite edition so you can put it in this post?
  • 0

#3 aprentice

aprentice

    Rockhillgames

  • GMC Member
  • 640 posts

Posted 11 July 2009 - 08:16 PM

theirs already an example like this but the other one the follows the mouse.

nice! 6/5
  • 0

#4 Shim Kangrey

Shim Kangrey

    GMC Member

  • New Member
  • 50 posts

Posted 11 July 2009 - 10:09 PM

Simple. Merge-able. Easily edited.

I'm most definitely using it in my game :P
  • 0

#5 slayer 64

slayer 64

    GMC Member

  • GMC Member
  • 3278 posts
  • Version:GM8.1

Posted 12 July 2009 - 12:18 AM

i think the number of items should be taken from image_number
//amount of items
items=6;
i set the width to 600 and height to 100. i think these should overlap so they look good.
Posted Image
  • 0

#6 Shim Kangrey

Shim Kangrey

    GMC Member

  • New Member
  • 50 posts

Posted 12 July 2009 - 02:07 AM

EDIT: Nevermind, fixed the issue :P

Edited by Shim Kangrey, 12 July 2009 - 02:12 AM.

  • 0

#7 mortalpico

mortalpico

    GMC Member

  • New Member
  • 556 posts

Posted 12 July 2009 - 02:33 AM

Great for Futuristic RTS War Game!THNX!
  • 0

#8 poizen

poizen

    Soft Aqua

  • GMC Member
  • 168 posts
  • Version:GM:Studio

Posted 12 July 2009 - 07:06 AM

nice can i send you the lite edition so you can put it in this post?

Sure.

i think the number of items should be taken from image_number

Maybe you're right. I didn't think of that.

i set the width to 600 and height to 100. i think these should overlap so they look good.

Yeah, I'm aware of that problem. It would cause unnecessary trouble to make it draw the icons in the order of their depth. You'll just have to keep their distance big enough to have it look good.
  • 0

#9 Liteuser

Liteuser

    GMC Member

  • GMC Member
  • 540 posts
  • Version:GM8.1

Posted 12 July 2009 - 09:54 PM

....How do you make it so you can press the buttons with enter or something?
Oh wait nevermind I misunderstood the engine

Edited by Liteuser, 12 July 2009 - 09:59 PM.

  • 0

#10 Me the III

Me the III

    ...No.

  • New Member
  • 859 posts
  • Version:GM8

Posted 12 July 2009 - 10:50 PM

Wow, it even LOOKS nice. Great job. I have always wanted something like this.
  • 0

#11 mortalpico

mortalpico

    GMC Member

  • New Member
  • 556 posts

Posted 13 July 2009 - 10:52 AM

Ofcourse and change that topic subtitle make it A Awesome Menu!
  • 0

#12 sy95boy

sy95boy

    GMC Member

  • New Member
  • 66 posts

Posted 13 July 2009 - 09:26 PM

wow, this is much better than i thought it would be, my only wish is that you can rotate through the menu using your mouse scroller also

i also like the orbs, i wish youd post the sprite :)

Edited by sy95boy, 14 July 2009 - 02:42 AM.

  • 0

#13 SamAndHarveyGames

SamAndHarveyGames

    GMC Member

  • New Member
  • 3 posts

Posted 14 December 2010 - 01:36 AM

Why do 3 of them not work?
  • 0

#14 JamesCXC

JamesCXC

    GMC Member

  • New Member
  • 1 posts

Posted 19 December 2010 - 04:47 PM

I hate too be a nuisance, but could someone perhaps tell me why this script isn't working in my program?

This error keeps popping up.

___________________________________________
FATAL ERROR in
action number 2
of Create Event
for object obj_ctrl:

COMPILATION ERROR in code action
Error in code at line 4:
rotate=0; //Whether the menu is rotating or not
^
at position 8: Variable name expected.

I'm using GM8 pro. I haven't touched GM in 6 years, just coming back into it now, so I'm very rusty.

THANKS!

Edited by JamesCXC, 19 December 2010 - 05:54 PM.

  • 0

#15 Ace

Ace

    GMC Member

  • New Member
  • 348 posts

Posted 20 December 2010 - 12:14 AM

Why do 3 of them not work?


I second this question. It automatically displays the smiley face as active as soon as the game is run. It seems to cycle between only 3 of them. The obj_ctrl.active variable seems to go directly from 3 to 5 and vice versa when left is pressed and then right.

Any ideas?

It seems to work eventually if you cycle long enough to the left OR right however. I'm no math whiz, but it seems to have something to do with the math. :P

Edited by Ace, 20 December 2010 - 12:22 AM.

  • 0

#16 BluePotato1994

BluePotato1994

    GMC Member

  • GMC Member
  • 184 posts
  • Version:GM8

Posted 21 December 2010 - 11:55 AM

theirs already an example like this but the other one the follows the mouse.

I think you are talking about Polystyrene Man's "Vim" it had this kind of menu but it follows the mouse.

But nice example by the way 10/10 :lol:
  • 0

#17 lbweb151

lbweb151

    GMC Member

  • New Member
  • 87 posts

Posted 21 December 2010 - 02:18 PM

Looks nice, but Host-A link is broken, and the other is working slow. Anyway I downloaded it.
Lol. It was better than I thinked.

Edited by lbweb151, 21 December 2010 - 02:20 PM.

  • 0

#18 poizen

poizen

    Soft Aqua

  • GMC Member
  • 168 posts
  • Version:GM:Studio

Posted 16 January 2011 - 08:23 PM

Yeah, it seems like GM8 somehow messes up my beautiful system (works fine in GM7). I don't know what the problem is, and frankly I don't feel too much like updating it to the new era. :P
  • 0

#19 Artaex Media

Artaex Media

    Artaex Media

  • GMC Member
  • 1528 posts
  • Version:GM8

Posted 16 January 2011 - 08:55 PM

Nice One :D

Also, how did you make the background? :o Do you have a tutorial ^_^ ?
  • 0

#20 poizen

poizen

    Soft Aqua

  • GMC Member
  • 168 posts
  • Version:GM:Studio

Posted 22 January 2011 - 03:10 PM

Do you have a tutorial ^_^ ?

No, but I pretty much just played around with brushes (ink blots, spray paint and whatnot) in Photoshop, used the dodge and burn tools and experimented with the layers' blend modes.

And thanks.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users