Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes

 
Question Need help with camera movements
Reply
Posted 2005-02-21, 02:24 PM
I need help with my camera movements. Does it move by pixels or movement squares? I have uploaded my game so far so you could check it out, Bluecube. HINT: check everything in your house. Maybe you could help me.

EDIT: I removed the faulty file, but my game is too large to put as an attachment. Could I use picaroni? Or would I be able to send it to you through PM?
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...

Last edited by Draco2003; 2005-02-21 at 04:09 PM.
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 
Reply
Posted 2005-02-21, 02:27 PM in reply to Draco2003's post "Need help with camera movements"
I've no longer got any RPG Maker installed on my comp. for some reason, so this may be wrong. If you are, say, wanting the camera to pan across the screen to look at something (say you enter a big hall, and the camera pans up the hall to your enemy standing waiting at the other end) then I seem to remember it moving by squares...

Don't take my word for it though...haven't done this for I don't know how long so...
Old
Profile PM WWW Search
Lenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basics
 
 
Lenny
 



 
Reply
Posted 2005-02-21, 03:16 PM in reply to Lenny's post starting "I've no longer got any RPG Maker..."
Ah, you need more than just the Setup.exe when making a GameDisk - you also need the .lzh file, setup.ini, and unlha32.dll.

Anyway, yes, the camera pans by blocks. And when you pan, it'll keep wherever you panned to as the center - so if you move it right by 5 blocks, the screen will always be 5 blocks off-center. The "Return to Origin" option fixes this.

Last edited by BlueCube; 2005-02-21 at 03:22 PM.
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
 



 
Reply
Posted 2005-02-22, 10:40 AM in reply to BlueCube's post starting "Ah, you need more than just the..."
My game is too large, and it is compressed. Do you think I could like maybe triple compress it? I tried moving by pixels and spaces, but it just isn't working. Please help me, Bluecube.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 
Reply
Posted 2005-02-22, 11:04 AM in reply to Draco2003's post starting "My game is too large, and it is..."
I'm not sure what exactly isn't working - is the camera refusing to move with the Pan Screen command? Make sure the map is large enough for the camera's movements (if you're moving 3 spaces over, you have to have 3 spaces in that direction or it won't move fully).

The best way I can think of to get the file to be small as possible - make a copy of the project folder, then edit that game so there's only one map. Make sure to take out the now-unused media files. (No need for monster PNGs unless there's a forced battle in that room, for example, or music.)

Also, make sure you aren't including the RTP. It's just one of those "make sure the computer is plugged in" sort of things - fairly obvious, but it's worth checking.
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
 



 
Reply
Posted 2005-02-22, 11:47 AM in reply to BlueCube's post starting "I'm not sure what exactly isn't working..."
I removed the gameover screens, RTP, and All music files that I added to the game. It's now able to be d/l'd. Enjoy. Don't forget to check the house, everywhere.

EDIT: I need the camera to move to the ship, follow the ship when it docks, and have about 4-6 pirates come out. Then the camera moves back to the main character. Thought maybe this would be useful for helping you.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...

Last edited by Draco2003; 2005-02-22 at 12:11 PM.
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 
Reply
Posted 2005-02-23, 12:19 AM in reply to Draco2003's post starting "I removed the gameover screens, RTP,..."
Still missing some needed files, since it's not in GameDisk form. Luckily I know how to fix that, but just for future reference:

- RPG_RT.exe isn't an issue, that can be copied from any project.

- RPG_RT.ini isn't too bad either, but it contains the game's title and some config settings. Duplicating this is easy as well.

- RPG_RT.lmt is the map tree data file. It sticks the .lmu files together. This can't be copied from a new project, since you'll only have map 0001 available. You'd have to create maps until you have the same number as the .lmu files you need, THEN copy it. Of course, this way makes you lose the map names and music (and something else too, but I can't figure what the hex values stand for yet).

- RPG_RT.ldb is the DATABASE. You know what this is. Pretty much everything within your game is lost without this one. It can be copied, but you're using another game's database - heroes, items, and all. If this wasn't a one-map demo it would have to be included.

-------------------

Anyway, on Map 0010 -

The camera moves fine to the ship (assuming you have a potion to activate one of those events). The camera also pans nicely to the left afterwards when the ship is an autostart event. Of course, the ship doesn't move, but that's because the water is non-passable and events obey passability. I'm not really seeing any issues here besides the non-moving ship...

-------------------

Also, panning the camera a specific amount of spaces based on which event you happen to step on isn't that effiecient. I built you a script that'll take care of the panning for you. It's in psuedocode for easier reading, and can go anywhere where you are panning from more than one location. This should go on the single target event and not the multiple "trigger" events. So in this case, the trigger events would just activate the ship, which handles the centering of the camera and the rest of the event. Easy enough. Once this is in, you can copy/paste it to any map and it'll still work. You can also move the trigger events around freely if you want to redesign the map instead of having to figure out where each event should pan to.

Code:

\\ Variable Setup

<> Variable:  Set [0001:Target Rel X], equal to Target's X coordinate
<> Variable:  Set [0002:Target Rel Y], equal to Target's Y coordinate

\\ Change this next part if target event is < 10 squares from the right
\\   edge, < 11 squares from the left edge, or < 7 squares from either
\\   vertical.Just subtract whatever's necessary.  
\\ If it's on the right edge of the screen, subtract 10 from the x value.
\\   If it's only 3 squares from the bottom, subtract 4 from the y.
\\ You will need to add to the x/y values if you go up and left and the
\\   event falls under these guidelines, I'm sure you can figure it out.

<> Variable: [0001:Target Rel X], subtract 10
<> Variable: [0002:Target Rel Y], subtract 0

\\ Now we check to see what the x/y difference between the hero and
\\ target is.

<> Variable: [0001:Target Rel X], subtract Hero's X coordinate
<> Variable: [0002:Target Rel Y], subtract Hero's Y coordinate

\\ This loop moves east

<> Loop
   <> Branch if [0001:Target Rel X] > 0
      <> Pan camera right 1 space
      <> Variable: [0001:Target Rel X], subtract 1
      <>
   :Else Handler
      <> Break Loop
      <>
   :End
:End Loop

\\ This loop moves west

<> Loop
   <> Branch if [0001:Target Rel X] < 0
      <> Pan camera left 1 space
      <> Variable: [0001:Target Rel X], add 1
      <>
   :Else Handler
      <> Break Loop
      <>
   :End
:End Loop

\\ This loop moves south

<> Loop
   <> Branch if [0002:Target Rel Y] > 0
      <> Pan camera down 1 space
      <> Variable: [0002:Target Rel Y], subtract 1
      <>
   :Else Handler
      <> Break Loop
      <>
   :End
:End Loop

\\ This loop moves north

<> Loop
   <> Branch if [0002:Target Rel Y] < 0
      <> Pan camera up 1 space
      <> Variable: [0002:Target Rel Y], add 1
      <>
   :Else Handler
      <> Break Loop
      <>
   :End
:End Loop
That's only 26 commands, not including comments or :Ends/:Elses which are automatic.

Last edited by BlueCube; 2005-02-23 at 01:45 AM.
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
 



 
Reply
Posted 2005-02-24, 05:26 PM in reply to BlueCube's post starting "Still missing some needed files, since..."
Sorry I didn't reply sooner, but thanks. I need to try that coding, but haven't gotten the chance yet. Hopefully it's what I need. Thanks again.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 
 

Bookmarks

« Previous Thread | Next Thread »

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

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:21 AM.
'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.