ROTATING MENU RING
Posts
Pages:
1
Hey guys. Looking into an icon system like SD3 or Secret of Mana's "menu ring." Can anybody link me to some material (or give a synopsis) of how it can be done smoothly in RM2k3? Google-fu has failed me.
You'd probably have to download some patch which allows you to rotate pictures by certain degree.
Should be possible with "power mode 2003"
Should be possible with "power mode 2003"
Oh.
I was going to suggest adapting the Midpoint circle algorithm to calculate (x, y) coordinates given a starting point on the circle and a center point.
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
I was going to suggest adapting the Midpoint circle algorithm to calculate (x, y) coordinates given a starting point on the circle and a center point.
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
There's a popular script that does this for XP.
Not sure how far you are into development though.
Not sure how far you are into development though.
[/chase]
Well when your using the ring, does everything else pause? That would make it easier, plus if you use screen relative x,y values it wouldnt matter. It might look messed up if you bring up the ring and then moved the hero.
I would think you just have each icon a separate show picture, and when you press Right/Left a common event checks what icon it's at and moves each picture in the proper direction depending on which icon is highlighted.
Just have a variable that tracks what icon your at. 1=items 2=equipment 3=magic...
Have a conditional branch. If (that var) = 1
Move picture 1 - x,y (up-left, it was highlighted now moves to the side)
Move picture 2 - x,y (down-left, it's next in the list so now its highlighted)
and so on for however many icons you have in the ring
Have a branch for each icon position. You could just show 3 icons at a time, use transparency to hide the icons that go out of view, or something.
That's how I'd code it. It might be possible with some kind of system that determines the x,y position of each placing in the ring and moves picture to that spot. Sounds complicated o.o I'd want to keep it simple. Besides, once you finish one of those branches you can copy/paste it then just change the main variable and the picture number in each move picture event. The x,y values will all be the same for each icon at some point. Easily mass produced.
*hmmm, actually, just thinking about this, it might not be as easy as that. unless the ring will always be displayed on the same spot in the screen. if you want it to appear over the head of the hero where ever they may be...you would have to create a system like kentona mentioned.
you could use a show picture to show the stationary ring of icons, and use a battle animation to make it look like a moving ring of icons, then you could show it anywhere on the screen. you'd just have to create a small system to find the x,y above the hero. just use a single variable to track what icon is selected. a common event system to track pressing left/right, accept, cancel. then branches for each outcome.
I would think you just have each icon a separate show picture, and when you press Right/Left a common event checks what icon it's at and moves each picture in the proper direction depending on which icon is highlighted.
Just have a variable that tracks what icon your at. 1=items 2=equipment 3=magic...
Have a conditional branch. If (that var) = 1
Move picture 1 - x,y (up-left, it was highlighted now moves to the side)
Move picture 2 - x,y (down-left, it's next in the list so now its highlighted)
and so on for however many icons you have in the ring
Have a branch for each icon position. You could just show 3 icons at a time, use transparency to hide the icons that go out of view, or something.
That's how I'd code it. It might be possible with some kind of system that determines the x,y position of each placing in the ring and moves picture to that spot. Sounds complicated o.o I'd want to keep it simple. Besides, once you finish one of those branches you can copy/paste it then just change the main variable and the picture number in each move picture event. The x,y values will all be the same for each icon at some point. Easily mass produced.
*hmmm, actually, just thinking about this, it might not be as easy as that. unless the ring will always be displayed on the same spot in the screen. if you want it to appear over the head of the hero where ever they may be...you would have to create a system like kentona mentioned.
you could use a show picture to show the stationary ring of icons, and use a battle animation to make it look like a moving ring of icons, then you could show it anywhere on the screen. you'd just have to create a small system to find the x,y above the hero. just use a single variable to track what icon is selected. a common event system to track pressing left/right, accept, cancel. then branches for each outcome.
Pages:
1















