Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Old Game Discussion »
  • Nead help!
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Nead help!  (Read 3963 times)

Offline Quezarlay

  • Member
  • Initiate
  • *
  • Posts: 89
  • Hablo espaņol e ingles
O_O
« Reply #15 on: November 11, 2005, 09:07:50 PM »
This is were I'm experimenting.
Logged
People!! Visit Neopets trough this link and register to help me have some money! But remember it must be with this link. Please help me gain some money for my neopets. http://www.neopets.com/refer.phtml?username=tanaskarel_quezarlay

Offline Quezarlay

  • Member
  • Initiate
  • *
  • Posts: 89
  • Hablo espaņol e ingles
._.
« Reply #16 on: November 11, 2005, 09:12:05 PM »
Well, I waned to attach it so it will be easier but the site won't let me. O_O
Logged
People!! Visit Neopets trough this link and register to help me have some money! But remember it must be with this link. Please help me gain some money for my neopets. http://www.neopets.com/refer.phtml?username=tanaskarel_quezarlay

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #17 on: November 11, 2005, 10:45:32 PM »
I've always wanted to be called a pie :D

Right now charas has a bug or something that doesn't allow you to upload files. You'll have to upload it to a differant server such as imageshack or photobucket and show them via link.

Quote
I just nead someone to tell me what I did wrong because the one I use in the link is exelent but the time just don't move. O_O


You didn't do anything wrong. When variables are displayed in a message box, they don't change at all after the message box is opened. So if the variable is 1 when the message box pops up,  the message box will show "1". If that variable changes while the message box is open, it will still show "1", in order for it to desplay the new time, you'll have to reopen the message box.

A real timer is possible, but you can't do it with the message system. Instead you will need picture files of the numbers 00 - 59. I recommend not using one because it will take a long time to make, and it may be very difficult to anyone who dosen't have a lot of experiance with rm2k/3. However, I always like to encourage people to try hard things like this, it's the only way to get better, well its one of the ways :p. Whether you want to use a message box or pictures is up to you, I'll try and explain how to make a real time clock, but I can't write the syntax off hand. If you don't understand it, I'll build the system and show you a few screenshots of how its put together.

-Make a new event in the common events, lets call it [CLOCK DISPLAY]
--Make this event a parallel process event with a switch as a trigger, lets call the swich [SHOW CLOCK]
--- Turn [SHOW CLOCK] ON when you want the clock to be desplayed.
 -Now lets make 12 variables, these variables will be for the X and the Y possition of the picture files.
--When pictures are desplayed, they need an x and a y possition to be desplayed. the X is the horizontal position, and the y is the virtical position. You don't need variables to desplay the pictures, but its a lot easier in the long run, and you'll see why later.
-- Name the variables HourX, HourY, MinuteX, MinuteY, SecondX, SecondY, DayX, DayY, MonthX, MonthY, YearX, and YearY.
-- For now lets just worry about the hours. Set HourX to 160, and HourY to 120. (160, 120 is in the center of the screen.)
- Heres the long part, make a fork condition (may be called conditional branch, its located on the 3rd page of the event options). In the fork condition, you'll see a variable tab, check that box. Set the variable to your HOURS variable (I think its 0013 for you). Select Equal To, then enter "1" as a number. Also be sure that the box for the option "execute custom handler if condition is not met" is turned OFF.
-- Now add a line between the branch if.. and END lines by double clicking in between them.
-- Go to page 2 and select the show picture command.
--- Select the picture of "01" or "1" (whichever you chose).
--- Set the picture number to 10
--- Under where it says "display coordinants, select Variable Reference. Choose HourX for the top line, and HourY for the bottom line.
-- What you have now is that if your HOUR variable is 1, a 1 will be desplayed in the center of the screen. However, if its a differant Hour, then nothing will be desplayed.
-- To fix this, you will need to make another conditional branch after the END of the first one. Make this exactly the same, however triggering it if HOUR is equal to "1", have it trigger if it is equal to "2".
-- In that branch, show the picture "2" instead of "1", still use Hour X and HourY.
-- Repeat this Process for the values 1 - 12 (or 1 - 24 if you're not using AM and PM).
- For minutes its even longer, but the same idea.
--Set MinuteX to 165 or 170, and set MinuteY to 120.
--Make conditional branches for all 60 minutes and desplay their picture file in each appropriate branch.
-- Make the picture number 11 instead of 10, and use MinuteX and MinuteY instead of HourX and HourY.
- Repeat same steps for seconds, use picture number 12, set a value for SecondX and SecondY, and use those two variables to desplay the pics.
- Add ":"'s in between the numbers when your done.
- Be sure to put a WAIT command at the end, it will reduce lagging. Set the wait to 1 second.

That will desplay the time in real time, to adjust the possition of the clock, all you have to do is change the values of the X and Y variables instead of changing the values of all 150 branches.

This is very long, but the easiest way. There is also another way to do this though. All you would need is pictures of numbers 0 - 9. Instead of desplaying the full number, you would only desplay each digit at a time. The downside to this will be it will require more pictures and will probably lag the game a lot worse, and its more complicated. Heres how to split a 2 digit number into two seperate single digit numbers, you'll have to do it for every double digit number. I'll show minutes.

- Make a new common event, name it ValueSplit
- Have parallel process, and have it require [ShowClock] to run
-Set a variable [NumberSplit] to the value of the varaible [Minutes]
-Set a variable [1Digit] to [NumberSplit]
-Set a vairable [10Digit] to [NumberSplit]
-Got to variable options and select [1Digit], select the MOD function, and select 10
- MOD [10Digit] by 100
- Go to variable options, select [10Digit], select subtract, by variable [1Digit]
- Divide [10Digit] by 10.

Now [1Digit] will be the number in the 1's digit and [10digit] will be the number in the 10s digit. Use these variables in the branches instead. It'll still require a lot of conditional branches, but instead of 60 for minutes, you'll only need 20.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

Offline Meiscool-2

  • Sage
  • *
  • Posts: 7,030
  • If you support n00bs, you support communism.
(No subject)
« Reply #18 on: November 12, 2005, 12:04:02 AM »
^
 l
 l

Exactly why I didn't want to take the time and write stuff.

Course... then again.... it would be niced to be called a pie.
Logged
Most Recent:

________________________
Old Stuff:

Offline Quezarlay

  • Member
  • Initiate
  • *
  • Posts: 89
  • Hablo espaņol e ingles
Well...
« Reply #19 on: November 12, 2005, 05:00:52 PM »
I don't know how but I FIX it!!  :D

Now I have a real timer and I can show it in the game with the variables now is runing, like I say before I don't know how I did it. ^_^

Now the problem is that even if I put the clock unlimite to use it only shows 2 time. WHAYYYY??

I waned to post the screens but it won't let me.


 :(
Logged
People!! Visit Neopets trough this link and register to help me have some money! But remember it must be with this link. Please help me gain some money for my neopets. http://www.neopets.com/refer.phtml?username=tanaskarel_quezarlay

  • Print
Pages: 1 [2]
« previous next »
  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Old Game Discussion »
  • Nead help!
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum