I havn't played the game but I believe I know what you mean.
Without going into the details, it would be best to look at trigonometry (to make things move in a circle) and there are numerous ways to pause the game, probably the most common way people do it is by putting the main game events into a group and disabling the group when you want to pause.
you could use a circular double-node reference based list to store all the menu items. Then just compute the items position as follows:
x = center point of circle
y = ditto ^
xMenu = x location of the menu item
yMenu = y ^
c = radius of circular menu
itemID = item's ID in the menu
currID = ID of menu item currently selected in list.
arcDist = angle of arc between two menu items
rotSpeed = menu rotation speed
For this code I will assume that each menu item is a separate active object.
>upon pressing left
- currID ++
>upon pressing right
- currID --
>Always
- set arcDist = 360 / (size of menu)
- set targetAngle("menu item") to (arcDist(itemID - currID) + 90)
Originally Posted by Snerlin - taco advocate you could use a circular double-node reference based list to store all the menu items. Then just compute the items position as follows:
x = center point of circle
y = ditto ^
xMenu = x location of the menu item
yMenu = y ^
c = radius of circular menu
itemID = item's ID in the menu
currID = ID of menu item currently selected in list.
arcDist = angle of arc between two menu items
rotSpeed = menu rotation speed
For this code I will assume that each menu item is a separate active object.
>upon pressing left
- currID ++
>upon pressing right
- currID --
>Always
- set arcDist = 360 / (size of menu)
- set targetAngle("menu item") to (arcDist(itemID - currID) + 90)
>Always
- set xMenu to (x + c*cos(angle("menu item"))
- set yMenu to (y - c*sin(angle("menu item"))
Well easier si if you make menu markers (irems, equipment etc.) in different sized.
When Global value A=1
- Set position of (Equipment marker) (0,0) from player
- Set position of (Items marker) (10,0) from player
etc. (eample positioning!) and
-Set (Equipment marker) direction into ...
And make different sized pics of the menu markers into the directions, like down is largest, up is smallest etc.
I think this is much easier to understand than snerlins ring menu.
I have proven new mathematic formula to be true...