Search found 684 matches

by h4tt3n
Nov 19, 2005 17:03
Forum: Beginners
Topic: using keyboard to turn things on / off...
Replies: 9
Views: 2166

Not entirely sure about the version. I think it's 0.14. Would you reccomend an update?

ps. Thanks for helping, Mambazo :-D

Best regards,
h4tt3n
by h4tt3n
Nov 19, 2005 10:06
Forum: Beginners
Topic: using keyboard to turn things on / off...
Replies: 9
Views: 2166

using keyboard to turn things on / off...

Small problem... I'm using the multikey function to turn a minimap on and off by pressing "m", which looks like this: If Multikey (50) < 0 then swap Map_Val1, Map_Val2: Draw_Map = Map_Val1 Works fine except the comp is way too fast - the thing turns on and off like 50 times a second when &...
by h4tt3n
Nov 16, 2005 12:37
Forum: Beginners
Topic: Side Scrolling
Replies: 3
Views: 1542

If you use oldscool graphics, you can do a very simple scroll like this... I commented the code snippet that does the scrolling. All you hardcore coders - Does this method have any drawbacks a n00b like me don't know about? '' Real-time gravity simulator Option Explicit Randomize Timer Const Pi = 3....
by h4tt3n
Nov 16, 2005 12:09
Forum: Beginners
Topic: some fun with planets
Replies: 17
Views: 5179

Hi Jupiter3888, It was put there intentionally. Here's the snippet that takes care of it. It's about 2/3 down in the part called asteroid belt. If Int(Rnd*42) = 0 Then .XVec =- .XVec .YVec =- .YVec End If Basically it flips a 42 sided dice. If the result is zero the vectors are changed from positive...
by h4tt3n
Nov 15, 2005 21:41
Forum: Beginners
Topic: some fun with planets
Replies: 17
Views: 5179

Here's an improved version of Dr_D's cool gravity simulation. Now it runs smoother and it has more realistic interaction since I've entirely rewritten the physics part of it. This version simulates the inner solar system, which is quite boring ;-D. Try to meddle around with the masses and distances ...
by h4tt3n
Nov 12, 2005 20:41
Forum: Beginners
Topic: single vs. double...
Replies: 1
Views: 733

single vs. double...

Why not dim all non-integer / string vars as doubles? What is the advantage in using lesser accurate single if any? Is there a gain in speed? Please explain.


best regards,
h4tt3n
by h4tt3n
Nov 09, 2005 11:33
Forum: General
Topic: Rounding Numbers
Replies: 14
Views: 4628

Is there any way to get a fixed number of decimals?

F.inst. so that 87.21599999999999 will show as just say 87.216 ?

the int(number*100)/100 doesn't fix this problem...

regards,
h4tt3n
by h4tt3n
Nov 03, 2005 18:10
Forum: Beginners
Topic: some fun with planets
Replies: 17
Views: 5179

Thanks Dr_D, that was just what I was looking for! ^^ I cant wait to merge those two programs. The result has to be pretty sweet. I take it, you don't mind that I modify your code and use it? Jupiter3888, I'm totally new with FB, and I'm surprised I even managed to get this far in a week or so. I ma...
by h4tt3n
Nov 02, 2005 21:11
Forum: Beginners
Topic: some fun with planets
Replies: 17
Views: 5179

some fun with planets

Hi ppl, Here goes my first real FB program! It's a simpe graphical simulation of a planet orbiting a sun. Eventually I'm planning on usin it both in a game and in some educational programs. So far it's just a gui, the physics engine isn't up and running yet, so the planet speed is defined by a simpl...
by h4tt3n
Oct 31, 2005 19:02
Forum: Beginners
Topic: Noobing with subs - plz help!
Replies: 6
Views: 2032

Thanks for taking your time answering, now I understand. ^^

I've made it work both as sub and function, and without the two extra variables you added.

regards,
h4tt3n
by h4tt3n
Oct 31, 2005 15:48
Forum: Beginners
Topic: Noobing with subs - plz help!
Replies: 6
Views: 2032

Hmmm, more or less that is... Now I've made two inverse functions that work - one to change rectangular coordinates into polar coordinates and vice versa. In order to check out their accuracy I set one to work with the data retrieved form the other, which then should give the same data as the origin...
by h4tt3n
Oct 31, 2005 15:22
Forum: Beginners
Topic: Noobing with subs - plz help!
Replies: 6
Views: 2032

Ah, it worked - Thx! ^^

regards,
h4tt3n
by h4tt3n
Oct 31, 2005 14:24
Forum: Beginners
Topic: Noobing with subs - plz help!
Replies: 6
Views: 2032

Noobing with subs - plz help!

Hello, I'm just learning the FB grammar and often I cant make it work... I've been experimenting with subs but can't make it work. What's wrong here? '' calculating rectangular coordinates (x, y) from polar coordinates(r, theta) sub Rek (r as double, theta as double) dim x as double dim y as double ...
by h4tt3n
Oct 31, 2005 14:19
Forum: Beginners
Topic: Simple game...
Replies: 8
Views: 2306

Thanks!

Looks complicated, though. I'll spend some time figuring this out. ^^

It's really nice of you people here helping us noobs out!


regards,
h4tt3n
by h4tt3n
Oct 28, 2005 21:27
Forum: Beginners
Topic: Tilting an ellipse in gfxlib (using circle)
Replies: 3
Views: 2118

thx! ^^

h4tt3n