Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2005-11-23, 09:38 PM in reply to BlueCube's post starting "I just check in every once in a while..."
BlueCube said:
Edit: Should probably draw a picture or something, the muliplying is tough to visualize unless you've done it before
Okay, here goes. The attachment should be at the bottom of this post.

Fig. A is the basis for planning everything. For icons or whatever, it's usually much, much easier to have odd numbers for the width/height so you can plan for the Offset (Fig B.) Actually the Offset involves rounding (I THINK it's ceil(x/2)) but using odd numbers just makes everything so much simpler. Fig 3. is used to help you understand all this math I get to put down. OKAY THEN


In the [####:Whatever] variable type of stuff, the #### is implied and doesn't help you much anyway since you'll be using different numbers. So I don't use numbers, just the names. Comments are in green, don't need the "Comment" thing in there.

The below code is incomplete because there's really no way to build the code until I know how the skills are obtained and if they're going to be known via switches or variables and how the cursor is going to be done (is it going to be via changing a picture, or is it going to be a selection target that surrounds the picture and glows or something, or is it going to be the good old "pointing finger" selection thing.)



Code:
Main Menu Part

-- Initialize variables so you can change spacing and size easily.
-- Offset/Spacing are obvious, VarIconMax is the last block that you use (See Fig C on the attachment)
<> Variable [VarIconOffset] = 5
<> Variable [VarIconSpacing] = 10
<> Variable [VarIconMax] = 44
<> Variable [VarIconTop] = 50
<> Variable [VarIconLeft] = 50
-- ---------------------------------------
<> Now it is time to place the icons










CursorPlacer (called)

-- Assumes: [VarCursorLocation] is where the cursor should go, in a "23" or whatever format.
<> FFFFFFFFFF





GetVirtCoords (called)

-- Assumes: [VarBlockNum] is something like "22"
-- Returns: [VarRealX], [VarRealY]
-- ---------------------------------------
-- Variable Init
<> [VarVirtY] = 0
<> [VarVirtX] = 0
-- ---------------------------------------
<> [VarVirtY] = [VarBlockNum] MOD 10
<> [VarVirtX] = [VarBlockNum] - [VarVirtY]
<> [VarRealX] = [VarRealX] / 10
<>



GetRealCoords (called)

-- Assumes: [VarVirtX] and [VarVirtY] have been set correctly
-- Returns: [VarRealX], [VarRealY]
-- ---------------------------------------
-- Variable Init
<> [VarRealY] = 0
<> [VarRealX] = 0
-- ---------------------------------------
<> [VarRealY] = [VarVirtY] * [VarIconSpacing]
<> [VarRealY] = [VarRealY] + [VarIconOffset]
<> [VarRealY] = [VarRealY] + [VarIconTop]
Attached Images
File Type: png FFFFFFFFF.PNG (31.3 KB, 6 views)
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:30 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.