Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Time in game help plz

Author
Message
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 23rd Jan 2005 23:23
hi all,
how would i make an ingame timer type thing, like if i want to make 5 real minutes=1 in game hour. So what if i want the sky to change at a certain in game time, how could i do this?

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Cellbloc Studios
21
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 23rd Jan 2005 23:38
You are only allowed 5 questions on the main page otherwise you get banned OR you need to goto the Newbie Corner

-This...is my boomstick!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Jan 2005 00:36
Also, try looking up answers in the 'search' forms - questions like this have been answered many times. I posted a timer code in the code snippets forum which gives time in minutes, seconds and milliseconds quite recently.




Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 03:46
k, thanks ill stop posting in this one

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 24th Jan 2005 03:49
GIL, I told you awhile ago.. DO NOT POST SO MANY TIMES ON A BOARD.. make a title, and continue posting on a SINGLE thread. You've been told numerous times, and you still do it. Let me save the MOD's some time and just say it myself, "Stop it. Your clogging the forums."



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 03:59
i know im stopping i just said that, and ive only been told once

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 04:02 Edited at: 24th Jan 2005 04:13
and its different topics im posting on so i didnt think i should post on the same one, and i dont see what the big deal is, sry i asked some questions. I'm trying to learn a lot of new concepts and i dont understand them! im just trying to get help, but some people arent very nice on here

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 24th Jan 2005 04:13
Yes, if you have multiple questions.. title a thread.. Multiple questions, then just continue in that thread.. dont make several thousand different ones.. and use the EDIT button, instead of double posting.



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 04:52
k, ill do that

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 05:40
and i didnt really find anything that would help me much, can anyone help me on here?

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Blue Icarian Wings
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: About hereish
Posted: 24th Jan 2005 05:52 Edited at: 24th Jan 2005 05:53
Quote: "use the EDIT button, instead of double posting"


Quote: " k, ill do that"

and you immediately double post,..........

code to do exactly what you won't will never exist, if it did why would anybody bother to code?, you have build upon a small starting piece

Quote: " I posted a timer code in the code snippets forum which gives time in minutes, seconds and milliseconds quite recently."

Quick search in the snippets board (put time into the thread title serach at the bottom of the page, was 2nd/3rd on the list)
http://forum.thegamecreators.com/?m=forum_view&t=43736&b=6

this will report the time, now all you have to have a function that checks the time (supplied by the above), and every nth minute call the function that changes the sky

Now go and have a go, and come back until you've at least had a serious go at it (a good start may be a small progam that loads 2 images and changes between images every 5secs, that should master the time part)
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 05:56 Edited at: 24th Jan 2005 05:57
ok, and i thought he meant edit on the original question, why does it matter if i double post inside the thread? it goes to the top if i edit it too doesnt it? . And nevermind just forget about the question. People on here can be pretty mean . Im sry i asked for some help on getting a timer.

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Blue Icarian Wings
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: About hereish
Posted: 24th Jan 2005 06:14
Quote: "why does it matter if i double post inside the thread?"


looks childish, and wheather you are or ont, people will think you are, and won't help you (fair? no, cruel? maybe, the way it works? yes)

Nobodys bothered whats at the top, and not being funny between us we're given you a damn good start at what you need (code to do time, ideas on how to start), and you have a sulk!

Go back ta'yer mother!
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 06:17 Edited at: 24th Jan 2005 06:19
no, thats the point! people arent helping me they just criticize me!!!!! people act like its a huge deal to post more than 3 questions, well what if i have a lot of questions!!!!!! Every time i ask a question people like u have to jump all over me and be jerks about it!! Why cant u just be nice about it!! Im not having a sulk, im mad at how rude people can be on here, just cause i ask a few questions!!! (and not everyones mean) uhh!

EDIT: and what do u mean posting twice on one thread looks "childish", that doesnt make since, why should anyone care if they have to read down 2 inches to the next post instead of me just editing everthing i say and people getting confused

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Jan 2005 06:52 Edited at: 24th Jan 2005 06:57
Quote: "im just trying to get help, but some people arent very nice on here "


We are being nice - we're helping you by pointing you in the right direction, and by telling you about the rules of etiquette so that you're more likely to get help, and less likely to annoy people! Just remember, search before you ask, don't double post, and try to solve one problem before asking about the next one!



OK, timer:



If you want to get a bit more complex - and have your timer read out in hours, minutes, seconds - than check out my code in the snippets section as I already mentioned. That's what it does.


Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 06:56
k, thanks you, and i said some people are being mean, not all. Ur being nice and helpful, but many others seem to jump all over me and criticize

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 24th Jan 2005 09:35
Quote: " people act like its a huge deal to post more than 3 questions, well what if i have a lot of questions!!!!!! "



Like i said above, create one thread called something like "Multiple questions" and continue your questions in that thread..

It's a huge deal because it clogs up the space for people to see other peoples threads(because they bounce down), and it's completely un necessary.



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 24th Jan 2005 10:12
k, ill do that now

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 24th Jan 2005 22:21
The way I do it is:



This produces a weighted average from the Frame Time. This is usefull for timer based movement... Bearing in mind the frameTime# is in milliseconds, you can do the following:



That would move obejct 1 at speed# per second. The * 0.001 is to make sure it moves at speed# per second instead of speed# per millisecond.

You can also do the following:



That'll turn your object at 180 degrees per second. Obviously, a * 0.360 will do 360 degrees per second and * 0.090 would do 90 degrees per second. VERY usefull!

The main advantage of this method is it works on ANY speed PC. If yours is doign 500fps, mine is doing 800fps and Joe Blogg's PC is doing 20fps, the actual movement will automatically adjust so its always 180 degree's per second, it'll just look smoother on ours

Also - at all the others shouting at him for this. I think there are about 12 posts here that dont answer the question. He is CLEARLY trying to learn and I HATE it when people spend their time making a big post having a go when they could simply either answer his question OR just go to a different thread.. Lemme guess, you're the kinda people that write into Points of View about how terrible a program was when the forced themselves to watch it instead of using the admin power of the remote control (JOKE).

Seriously guys - how would you like it if you posted for help and Gil posted back having a go?

What does it matter if he has a few thread open? If you dont wanna help - just dont bother! Leave it to those who'd rather make this a nice helpfull community rather than making all the new programmers feel like crap for asking for help.

Dont get me wrong - It would be nice if peope used the edit button and made appropriate titles for their posts and stuff and I have a go at them for that, but at least I try to provide some help too (Kinda like Ric did above, nicely posted )

That my rant + help overwith.. Gil, if you need any more help with that snippet, either post back here or email me.

My Website:
Gil Galvanti
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 25th Jan 2005 07:01 Edited at: 25th Jan 2005 07:01
thank u very much nicholas, for the code and standing up for me, ur right, and ill look into that code

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 25th Jan 2005 11:41
Well said Nick. I don't think Gil has caused any harm. There are a lot of unwritten rules of etiquette that newcommers won't know about, so they shouldn't be flamed if they don't get the hang of it straight away! And after all, this isn't the clubhouse at the golf course ..... we'll be needing to wear a tie to get in next!


Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 26th Jan 2005 04:19
It's not so much the double posting as the constant addition of new threads.



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.

Login to post a reply

Server time is: 2025-06-08 03:52:19
Your offset time is: 2025-06-08 03:52:19