Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Pot Noodle

Pages: [1] 2 3 4 5 6 7 8 ... 11
1
Freebasic / Null.dll Missing
« on: February 25, 2013 »
Hi guys, Just installed FreeBasic on windows 7 pro with fbedit but every time I try and run anything I get Null.dll missing error
Should there be an Null.ddl library on my system? and if so is it just used by freebasic? or fbedit..
Thanks

2
General chat / Re: Happy birthday Vain!
« on: June 30, 2012 »
Happy birthday for yesterday, another year closer to dressing like ya dad!  ;D

3
General chat / Re: Happy Birthday Pot Noodle!
« on: June 14, 2012 »
Thanks for the birthday wishes guys.

4
General coding questions / Re: Hi im new to DBF
« on: June 07, 2012 »
Good to have you around Samh980  :hi:

5
Projects / Re: My new Music..
« on: June 02, 2012 »
Nice, I know who to ask when i need some music.

6
General chat / Re: klystrack!
« on: June 02, 2012 »
Well done guys, I don't think n00bstar will need all that Red Bull now!  :goodpost:

7
General chat / Re: klystrack!
« on: May 31, 2012 »
Good info n00bstar, Thanks for that I am glad you found the Amiga scene spirit you were looking for.  :goodpost:

8
OK I have it sorted, thanks anyways..

9
Thanks for the advice guys i will Carry on.

10
OK Raizor i think i have it in the bag  :D I stopped up last night and started from scratch, putting what i have learned in to Perspective and few tweaks her and there and it's now looking like the real thing.  :updance:
I will let you know what i did to sort it out once i have finished it.
Thanks.

11
Hi guys, I am hopping that some one can help me out with this effect.



I have been playing with this with out any joy.

Code: [Select]
Img = CreateImage(#PB_Any, #ResX, 240)
StartDrawing(ImageOutput(Img))
  For Y = 0 To 240
    R + 3 : G + 1 : b + 3
    LineXY(0, Y, #ResX, Y, RGB(R,G,b))
  Next
StopDrawing()

Thanks.

12
Thanks for your time Raizor  :'( I have to be truthfull and say I was hopping for an answer or even a rewrite!..
O'well looks like another one for the trash can as I just can't move forward with this project.
Thanks Jim for your input.

13
General chat / Re: New Computer for General 2
« on: May 17, 2012 »
I would allways go for a tower, I have had my tower for the last 10 years now and it has lasted me well, it's only ever had one new motherboard + one new processor + one new hard drive + one new DVD drive.. O' Ya and I replaced the power supply last week  :clap:

14
General chat / Re: Happy Birthday Padman
« on: May 11, 2012 »
Happy birthday mate and many more to come  :cheers:

15
Cheers Raizor, looking forward to see what you come up with  ;D

16
Thanks hellfire, the problem with that is i don't wont the MPH to drop & rise with gear change etc..
Raizor here is the link

http://dl.dropbox.com/u/71849177/Jaguar%20XJ220.rar

17
General coding questions / The need for speed!
« on: May 09, 2012 »
I will try and explain the problem to you

Car racing game, and i have the Rpm that when you press the up key goes from 0 to 55.
Then at the same time i need the Mph to go from 0 to 30.
It's when slowing down the car there is a problem as the Mph goes in to negative numbers before the Rpm reaches 0
I have tryed all sorts but i just can't sort it out.
Thanks for any help guys.

Code: [Select]
#Minimum_Rpm = 20
Global Gear = 1

Enumeration
  #Accelerate
  #Brake
  #SlowDown
EndEnumeration

Structure GearAccel
  GearUpAt.f                                                 ; RPM for next gear (up)
  GearDownAt.f                                               ; RPM for next gear (down)
  AccelUp.f                                                  ; RPM to add when accelerating
  AccelBreak.f                                               ; RPM to subtract when braking
  AccelDown.f                                                ; RPM to subtract when automatic slow down
  AccelDiff.f                                                ; RPM difference between gears
  SpeedUp.f                                                  ;
  SlowDown.f                                                ;
EndStructure

Global Dim GearTable.GearAccel(5)

; Init GearTable
GearTable(1)\AccelUp    = 0.5 : GearTable(1)\GearUpAt   = 50 ; change up at
GearTable(1)\AccelDown  = 0.5 : GearTable(1)\GearDownAt = 5  ; change down at
GearTable(1)\AccelBreak = 0.5 : GearTable(1)\AccelDiff  = 20 ; rpm between change
GearTable(1)\SpeedUp    = 0.1 : GearTable(1)\SlowDown  = 0.1

GearTable(2)\AccelUp    = 0.4 : GearTable(2)\GearUpAt   = 55
GearTable(2)\AccelDown  = 0.4 : GearTable(2)\GearDownAt = 15
GearTable(2)\AccelBreak = 0.4 : GearTable(2)\AccelDiff  = 20
GearTable(2)\SpeedUp    = 0.1 : GearTable(2)\SlowDown  = 0.1

GearTable(3)\AccelUp    = 0.3 : GearTable(3)\GearUpAt   = 60
GearTable(3)\AccelDown  = 0.3 : GearTable(3)\GearDownAt = 25
GearTable(3)\AccelBreak = 0.3 : GearTable(3)\AccelDiff  = 20
GearTable(3)\SpeedUp    = 0.1 : GearTable(3)\SlowDown  = 0.1

GearTable(4)\AccelUp    = 0.2 : GearTable(4)\GearUpAt   = 65
GearTable(4)\AccelDown  = 0.2 : GearTable(4)\GearDownAt = 35
GearTable(4)\AccelBreak = 0.2 : GearTable(4)\AccelDiff  = 20
GearTable(4)\SpeedUp    = 0.1 : GearTable(4)\SlowDown  = 0.1

GearTable(5)\AccelUp    = 0.1 : GearTable(5)\GearUpAt   = 70
GearTable(5)\AccelDown  = 0.1 : GearTable(5)\GearDownAt = 45
GearTable(5)\AccelBreak = 0.1 : GearTable(5)\AccelDiff  = 20
GearTable(5)\SpeedUp    = 0.1 : GearTable(5)\SlowDown  = 0.1

Procedure Transmission(accel)
 
  Shared Motor
 
  If accel = #Accelerate
    If Rpm >= GearTable(Gear)\GearUpAt And Gear < 5          ; Accelerate - Gear Up
      Rpm - GearTable(Gear)\AccelDiff
      Gear + 1
    Else
     
      Rpm + GearTable(Gear)\AccelUp                          ; Accelerate
      Mph + GearTable(Gear)\SpeedUp                         ; Speed up
       
      If Gear = 5 And Rpm > 50 : Rpm = 50 : EndIf
      If Gear = 5 And Mph > 30 : Mph = 30 : EndIf
     
    EndIf
  ElseIf accel = #Brake
   
    Rpm - GearTable(Gear)\AccelBreak                         ; Brake
    Mph - GearTable(Gear)\SlowDown                          ; Slow down
   
    If Rpm <= GearTable(Gear)\GearDownAt And Gear > 1        ; Brake - Gear Down
      Rpm + GearTable(Gear)\AccelDiff
      Gear - 1
    ElseIf Gear = 1
      If Rpm < #Minimum_Rpm : Rpm = #Minimum_Rpm : EndIf
      If Mph < #Minimum_Mph : Mph = #Minimum_Mph : EndIf
    EndIf
  Else
   
    Rpm - GearTable(Gear)\AccelDown                          ; Slow Down
    Mph - GearTable(Gear)\SlowDown
   
    If Rpm <= GearTable(Gear)\GearDownAt And Gear > 1        ; Slow Down - Gear Down
      Rpm + GearTable(Gear)\AccelDiff
      Gear - 1
    ElseIf Gear = 1                                          ; Slow Down - 1st Gear minimum Rpm
      If Rpm < #Minimum_Rpm : Rpm = #Minimum_Rpm : EndIf
      If Mph < #Minimum_Mph : Mph = #Minimum_Mph : EndIf
    EndIf
  EndIf
 
  ; Change the engine freq acording to Rpm
  SoundFrequency(Motor,Rpm*400)
  ; Return Mph
  ProcedureReturn Mph
 
EndProcedure

18
General coding questions / Convert RPM
« on: May 04, 2012 »
Hi Guys, Still playing around with this car game  ::) I have been sorting out the transmission.
But now that's all good I need a way to convert RPM to a usable floating point value.
The problem is that the RPM are high integers and my road speed is low floats like 0.1+
Can someone show me the light? Please.

Code + Sound Included in Zip.

19
Wow.. Nice one Raizor, You really made a cheesy one there mate  ::)
Real Cooool  :clap:

20
Still working on my XJ220 game  ;D

Pages: [1] 2 3 4 5 6 7 8 ... 11