User Tag List

Page 11 of 58 FirstFirst ... 91011121321 ... LastLast
Results 201 to 220 of 1144

Thread: Game Maker Help Thread (Post your Qs here!)

  1. #201

    Default

    thanks I will definetly ask them.

  2. #202
    Game.Dev Moderator
    and bettar-rar game developer than Wea-sel
    dislekcia's Avatar
    Gamertag: dislekcia

    Default

    Fixed ;)

    And yes, we do need to organise more DevLans and HotLabs... Problem is that this time of year is notoriously difficult due to exams and all that. I'm very out of touch with school cycles, so I have no idea when it's a good time and when not, that means I tend to just sort of go "Oh, November and December are bad times... sigh".

    -D

  3. #203

    Default

    okey.Well if it helps i know that all schools in my area close on the 21st or the 22nd of November.

  4. #204

    Default Visual Basic Help

    Hey im trying to learn visual basic to make .dll's for my GM games and i was wondering if anyone can help me to use random/randomize? im just playin around with the windows application and it doesn't want to work.

    Also as a matter of interest whats the best way to clean a keyboard(/mouse)?

  5. #205

    Default

    Well I clean my keyboard by hitting it against the table(not hard though ).just enough to get the dirt out .Then I wipe it down with a slightly damp cloth.:0

  6. #206

    Default

    so do i but theres lil bits of wat look like chips and hair that dont wanna come out!

  7. #207

    Default

    is the random for visual basic? as visual basic doesnt have its own random function as far as I know, all my programs in visual basic that have required random have used a custom written function I found when googling for random in visual basic, if you want I can give you that.
    I dont see why you would need it though, Game Maker has a random function built into it.

  8. #208
    Game.Dev Moderator
    and bettar-rar game developer than Wea-sel
    dislekcia's Avatar
    Gamertag: dislekcia

    Default

    Quote Originally Posted by |-|1Pp13 View Post
    Hey im trying to learn visual basic to make .dll's for my GM games and i was wondering if anyone can help me to use random/randomize? im just playin around with the windows application and it doesn't want to work.
    How do you mean it doesn't work? I take it you need random numbers generated inside your DLL, because GM has a perfectly good random function ;)

    -D

  9. #209

    Default

    Quote Originally Posted by random for VB
    Public Function Rand(ByVal Low As Long, _
    ByVal High As Long) As Long
    Rand = Int((High - Low + 1) * Rnd) + Low
    End Function
    Here, hope this helps you :)

  10. #210

    Default

    Thanx! and i wanted random for my visual basic project im working on...separate from my gm one

    in visual basic cntrl+space there is random+randomize in that lil menu that pops up!

  11. #211

    Default

    what version of visual basic are you using? (I use 6)

    Quote Originally Posted by Express Edition 2005
    Pseudo-random numbers are chosen with equal probability from a finite set of numbers. The chosen numbers are not completely random because a definite mathematical algorithm is used to select them, but they are sufficiently random for practical purposes. The current implementation of the Random class is based on Donald E. Knuth's subtractive random number generator algorithm. For more information, see D. E. Knuth. "The Art of Computer Programming, volume 2: Seminumerical Algorithms". Addision-Wesley, Reading, MA, second edition, 1981.

    The random number generation starts from a seed value. If the same seed is used repeatedly, the same series of numbers is generated. One way to produce different sequences is to make the seed value time-dependent, thereby producing a different series with each new instance of Random.

    To improve performance, create one Random to generate many random numbers over time, instead of repeatedly creating a new Random to generate one random number.
    Quote Originally Posted by Visual Basic (usage)
    Dim instance As Random
    Last edited by edg3; 15-11-2007 at 04:06 PM.

  12. #212

    Default

    its the 2005 express edition . hmmm.....probably very different

  13. #213

  14. #214

    Default

    I have the following:

    - VB 6
    - VB EE 2005
    - VB.net

    I just prefer VB6. :) glad I could help

  15. #215

    Default

    and lets say i had to output this to a label (Label1)

    dim number as random

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Label1.Text = number
    End Sub



    it gives me the error:

    Error 1 Value of type 'System.Random' cannot be converted to 'String'.

    i dont know wat the conversion type is!

  16. #216

    Default

    Dim rRandom As New Random
    Dim iVar As Integer
    iVar = rRandom.Next()
    Label1.Text = Str(iVar)
    Here you go :)

  17. #217

  18. #218

    Default

    now i have a whole new problem...i forgot what i was going to use it for :P

  19. #219

  20. #220

    Default

    lol the tgd website basically reffers you back here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •