Seite 67 von 342 ErsteErste ... 17 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 117 167 ... LetzteLetzte
Zeige Ergebnis 1.981 bis 2.010 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von natan333 i think you have to do something like this Code: if letterPosy < 2 then letterPosy = ...

  
  1. #1981
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von natan333
    i think you have to do something like this
    Code:
    if letterPosy < 2 then letterPosy = 2 end
    if letterPosy > 269 then letterPosy = 269 end
    if letterPosx < 2 then letterPosx = 2 end
    if letterPosx > 477 then letterPosx = 477 end
    same as a arrow or an object to stop at a location, but have no idea to make it disapear after it stops

    anyways
    guys I have a background set up and I draw like a filled red square above it.
    I want to erease half of the filled red square with an arreaser picture so one of the half of the square will be red and the other part will replease the backgroung.
    not like to erease with a white color, but using the background to errease something and to look the same after erased

    is it possible to do it ?

    thats not what i meant. :)

    i meant like: a have a square (which is the player) and a couple of red things coming at you ( enemies) i want it so that if ONE or more of the squares(there are ten at the moment) hit you, then gameover = true. but the enemies pass right through the player without doing anything.


    --------------------------------------------------------------------------------------

  2. #1982
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Hi i have a little prob

    Code:
    --Colours
    white = Color.new(255,255,255)
    red = Color.new(255,0,0)
    pad = Controls.read()
    --Text
    screen:print(5,50,"Producer",white)
    screen:print(5,65,"Zereo_X",red)
    screen:print(5,75,"Special Thanks to",white)
    screen:print(5,90,"xodiac21,Grimfate126,Sousanator,EminentJonFrost",red)
    screen:print(0,250,"Press X to exit",red)
    screen.flip()
    
    while true do
    screen.waitVblankStart()
    end
    
    if pad:cross()
    dofile("Test.lua")
    end
    its just won't go back to Test.lua when i press X what is that can som1 help.

  3. #1983
    Points: 5.745, Level: 48
    Level completed: 98%, Points required for next Level: 5
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    404
    Points
    5.745
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    if pad:r() and pad:square() then 
    if eraser and arrow then
    picture = 2
    end
    end
    guys wasnt this code supposed to go to picture 2 if arrow is inside erease picture ?
    or something like this
    Code:
    if pad:r() and pad:square() and picture == 2 then 
    if eraser >= arrow and arrow <= eraser then
    picture = 2
    end
    end
    but it gives me error =/
    is there a way though ?
    i would like to know becuase my way to make picture 2 work is guessing a imaginary retangle y and x and it takes long to find it =/
    Geändert von natan333 (05-02-2006 um 06:24 PM Uhr)
    Bequiet!!!
    I'm learning cc©cc

  4. #1984
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    i think you have to do somthing like Eraserinarrow = eraser+arrow+1 then

    if pad:r() and pad:square() and Eraserinarrow == 1 then
    picture = 2
    end
    end
    Really not shure it may(70%) not work.

  5. #1985
    QJ Gamer Bronze
    Points: 8.803, Level: 63
    Level completed: 18%, Points required for next Level: 247
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Western Australia
    Beiträge
    1.046
    Points
    8.803
    Level
    63
    Downloads
    0
    Uploads
    0

    Standard

    if pad:r() and pad:square() and picture == 2 and eraser >= arrow and arrow <= eraser then
    picture = 2
    end

    I'm pretty sure that's right.

  6. #1986
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ZereoX
    Hi i have a little prob

    Code:
    --Colours
    white = Color.new(255,255,255)
    red = Color.new(255,0,0)
    pad = Controls.read()
    --Text
    screen:print(5,50,"Producer",white)
    screen:print(5,65,"Zereo_X",red)
    screen:print(5,75,"Special Thanks to",white)
    screen:print(5,90,"xodiac21,Grimfate126,Sousanator,EminentJonFrost",red)
    screen:print(0,250,"Press X to exit",red)
    screen.flip()
    
    while true do
    screen.waitVblankStart()
    end
    
    if pad:cross()
    dofile("Test.lua")
    end
    its just won't go back to Test.lua when i press X what is that can som1 help.
    you forgot to put './' just before "Test.lua"

    so it would be:

    Code:
    if pad:cross()
    dofile("./Test.lua")
    end
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  7. #1987
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PopcOrn DeVil
    if pad:r() and pad:square() and picture == 2 and eraser >= arrow and arrow <= eraser then
    picture = 2
    end

    I'm pretty sure that's right.
    ??
    Are you sure thats right?
    lol

    maybe

    Code:
    if pad:r() and pad:square() and eraser >= arrow and arrow <= eraser then
    picture = 2
    end
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  8. #1988
    QJ Gamer Bronze
    Points: 8.803, Level: 63
    Level completed: 18%, Points required for next Level: 247
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Western Australia
    Beiträge
    1.046
    Points
    8.803
    Level
    63
    Downloads
    0
    Uploads
    0

    Standard

    Yeah well he put it in his original if statement for some reason.

  9. #1989
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PopcOrn DeVil
    Yeah well he put it in his original if statement for some reason.
    oh thats right..
    well, maybe thats what causes the error.
    we'll have to hear from ZereoX.
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  10. #1990
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Does anyone know about working objects that turn in to "Nil objects" when put the PSP to sleepmode, then back on again?
    [CENTER]Some of my homebrew Applications/Games:
    [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL]
    [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL]

    [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER]

  11. #1991
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    EminentJonFrost,i never added a ./ in my other script and it works perfect but this one just won't work

  12. #1992
    Points: 5.745, Level: 48
    Level completed: 98%, Points required for next Level: 5
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    404
    Points
    5.745
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von EminentJonFrost
    ??
    Are you sure thats right?
    lol

    maybe

    Code:
    if pad:r() and pad:square() and eraser >= arrow and arrow <= eraser then
    picture = 2
    end
    still getting error with that :Cry:
    Bequiet!!!
    I'm learning cc©cc

  13. #1993
    QJ Gamer Silver
    Points: 9.678, Level: 66
    Level completed: 7%, Points required for next Level: 372
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    The Migrant Fleet
    Beiträge
    908
    Points
    9.678
    Level
    66
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von HaxxBlaster
    Does anyone know about working objects that turn in to "Nil objects" when put the PSP to sleepmode, then back on again?
    just a guess.. never tried it.. but maybe
    Code:
     if sleepmode == true then
    "object" = nil
    end
    if sleepmode == false then
    "object" = 'sumtin here'
    end

  14. #1994
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    can ANYBODY help me?????
    --------------------------------------------------------------------------------------

  15. #1995
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    EminentJonFrost,Lol look what i did

    if pad:cross() <----Forgot then
    dofile("Test.lua")
    end

  16. #1996
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    try this:

    Zitat Zitat von Grimfate126
    i have another problem(yay), but i solved my other one. my currnet problem:

    my collision detection wont work. here is my code:

    Code:
    math.randomseed(os.time())
    
    a = 0
    b = 0
    d = 1
    e = 1
    f = 1
    g = 1
    
    x = 1
    y = 120
    x32 = x+50
    y32 = y+50
    
    spike = {}
    
    for c = 1,10 do
    x2 = 0
    y2 = 0
    spike[c] = { a = math.random(100), b = math.random(100), x2 = math.random(2000), y2 = math.random(240), x232 = x2+a, y232 = y2+b} 
    end
    
    for h = 1,10 do
    
    if x32>=spike[h].x2 and x<=spike[h].x2 and y32 =spike[h].y2 and y<=spike[h].y2 then
    gameover = true
    end
    
    end
    
    if gameover == true then
    break
    i have defined everything. but the objects pass right through the player..

    pls help me..
    I changed all the spike[h].y232 into spike[h].y2 basicly.
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  17. #1997
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ZereoX
    EminentJonFrost,Lol look what i did

    if pad:cross() <----Forgot then
    dofile("Test.lua")
    end
    lol
    amazing how little things escape our attention..
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  18. #1998
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    OK hi,Im making a card game but how do i do so that there random cards at the start like
    you receive one of those cards at start
    then after wards i can say how much that random card is wort.

    Code:
    Aceclover = image.load("cards/AceClover.png")
    Acediamond = image.load("cards/AceDiamond.png")
    Aceheart = image.load("cards/Aceheart.png")
    Acespade = image.load("cards/AceSpade.png")
    Twoclover = image.load("cards/2Clover.png")
    Twodiamond = image.load("cards/2Diamond.png")
    Twoheart = image.load("cards/2Heart.png")
    Twospade = image.load("cards/2Spade.png")
    Threeclover = image.load("cards/3Clover.png")
    Threediamond = image.load("cards/3Diamond.png")
    Threeheart = image.load("cards/3Heart.png")
    threeSpade = image.load("cards/3Spade.png")
    Fourclover = image.load("cards/4Clover.png")
    Fourdiamond = image.load("cards/4Diamond.png")
    Fourheart = image.load("cards/4Heart.png")
    Fourspade = image.load("cards/4Spade.png")
    Fiveclover = image.load("cards/5Clover.png")
    Fivediamond = image.load("cards/5Diamond.png")
    Fiveheart = image.load("cards/5Heart.png")
    Fivespade = image.load("cards/5Spade.png")
    Sixclover = image.load("cards/6Clover.png")
    Sixdiamond = image.load("cards/6Diamond.png")
    Sixheart = image.load("cards/6Heart.png")
    Sixspade = image.load("cards/6Spade.png")
    Sevenclover = image.load("cards/7Clover.png")
    Sevendiamond = image.load("cards/7Diamond.png")
    Sevenheart = image.load("cards/7Heart.png")
    Sevenspade = image.load("cards/7Spade.png")
    Heightclover = image.load("cards/8lover.png")
    Heightdiamond = image.load("cards/8Diamond.png")
    Heightheart = image.load("cards/8heart.png")
    Heightspade = image.load("cards/8Spade.png")
    Nineclover = image.load("cards/9Clover.png")
    Ninediamond = image.load("cards/9Diamond.png")
    Nineheart = image.load("cards/9Heart.png")
    Ninespade = image.load("cards/9Spade.png")
    Tenclover = image.load("cards/10Clover.png")
    Tendiamond = image.load("cards/10Diamond.png")
    Tenheart = image.load("cards/10Heart.png")
    Tenspade = image.load("cards/10Spade.png")
    Jackclover = image.load("cards/JackClover.png")
    Jackdiamond = image.load("cards/JackDiamond.png")
    Jackheart = image.load("cards/JackHeart.png")
    Jackspade = image.load("cards/JackSpade.png")
    Queenclover = image.load("cards/QueenClover.png")
    Queendiamond = image.load("cards/QueenDiamond.png")
    Queenheart = image.load("cards/QueenHeart.png")
    Queenspade = image.load("cards/QueenSpade.png")
    Kingclover = image.load("cards/QueenClover.png")
    Kingdiamond = image.load("cards/KingDiamond.png")
    Kingheart = image.load("cards/KingHeart.png")
    Kingspade = image.load("cards/KingSpade.png")

  19. #1999
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ZereoX
    OK hi,Im making a card game but how do i do so that there random cards at the start like
    you receive one of those cards at start
    then after wards i can say how much that random card is wort.

    Code:
    Aceclover = image.load("cards/AceClover.png")
    Acediamond = image.load("cards/AceDiamond.png")
    Aceheart = image.load("cards/Aceheart.png")
    Acespade = image.load("cards/AceSpade.png")
    Twoclover = image.load("cards/2Clover.png")
    Twodiamond = image.load("cards/2Diamond.png")
    Twoheart = image.load("cards/2Heart.png")
    Twospade = image.load("cards/2Spade.png")
    Threeclover = image.load("cards/3Clover.png")
    Threediamond = image.load("cards/3Diamond.png")
    Threeheart = image.load("cards/3Heart.png")
    threeSpade = image.load("cards/3Spade.png")
    Fourclover = image.load("cards/4Clover.png")
    Fourdiamond = image.load("cards/4Diamond.png")
    Fourheart = image.load("cards/4Heart.png")
    Fourspade = image.load("cards/4Spade.png")
    Fiveclover = image.load("cards/5Clover.png")
    Fivediamond = image.load("cards/5Diamond.png")
    Fiveheart = image.load("cards/5Heart.png")
    Fivespade = image.load("cards/5Spade.png")
    Sixclover = image.load("cards/6Clover.png")
    Sixdiamond = image.load("cards/6Diamond.png")
    Sixheart = image.load("cards/6Heart.png")
    Sixspade = image.load("cards/6Spade.png")
    Sevenclover = image.load("cards/7Clover.png")
    Sevendiamond = image.load("cards/7Diamond.png")
    Sevenheart = image.load("cards/7Heart.png")
    Sevenspade = image.load("cards/7Spade.png")
    Heightclover = image.load("cards/8lover.png")
    Heightdiamond = image.load("cards/8Diamond.png")
    Heightheart = image.load("cards/8heart.png")
    Heightspade = image.load("cards/8Spade.png")
    Nineclover = image.load("cards/9Clover.png")
    Ninediamond = image.load("cards/9Diamond.png")
    Nineheart = image.load("cards/9Heart.png")
    Ninespade = image.load("cards/9Spade.png")
    Tenclover = image.load("cards/10Clover.png")
    Tendiamond = image.load("cards/10Diamond.png")
    Tenheart = image.load("cards/10Heart.png")
    Tenspade = image.load("cards/10Spade.png")
    Jackclover = image.load("cards/JackClover.png")
    Jackdiamond = image.load("cards/JackDiamond.png")
    Jackheart = image.load("cards/JackHeart.png")
    Jackspade = image.load("cards/JackSpade.png")
    Queenclover = image.load("cards/QueenClover.png")
    Queendiamond = image.load("cards/QueenDiamond.png")
    Queenheart = image.load("cards/QueenHeart.png")
    Queenspade = image.load("cards/QueenSpade.png")
    Kingclover = image.load("cards/QueenClover.png")
    Kingdiamond = image.load("cards/KingDiamond.png")
    Kingheart = image.load("cards/KingHeart.png")
    Kingspade = image.load("cards/KingSpade.png")
    can you clarify a bit more?
    this part: "after wards i can say how much that random card is wort"
    i dont get it.
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  20. #2000
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    i mean that a random card apears then if its a 2Spade then i can say to lua that its wort 2 points

  21. #2001
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    do an array. Ex:

    Code:
    Deck = {}
    Deck[1] = AceSpades
    Deck[2] = AceHearts
    etc..
     
    x = random.time(1,52) --w/e the random number function is and how to pick 2 numbers to get a random number from.
    Deck[x]
    Basically, do an array that holds all the cards. Use the random number function and have a variable be the card to draw, and chagne that variable via a random number. Since my LUA is very rusty, my array is probably rong, and probably combined with the C form of an array, but still, you get the concept i hope.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  22. #2002
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Altair
    try this:



    I changed all the spike[h].y232 into spike[h].y2 basicly.

    that doesnt work either
    --------------------------------------------------------------------------------------

  23. #2003
    Points: 5.745, Level: 48
    Level completed: 98%, Points required for next Level: 5
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    404
    Points
    5.745
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    guys is there a way to make
    Code:
    if pad:r() and pad:square() then
    if letterPosx >= 238 and letterPosx <= 260 and letterPosy >= 20 and letterPosy <= 40 then
    picture = 3
    end
    end
    to work only 1 time ? so next time it press that place it dosent work
    Bequiet!!!
    I'm learning cc©cc

  24. #2004
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    how can i make a image moves from one place to an other.

  25. #2005
    TheMarioKarters
    Guest

    Standard

    Zitat Zitat von ZereoX
    how can i make a image moves from one place to an other.
    Oh come on, try reading some tutorials.

  26. #2006
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ZereoX
    how can i make a image moves from one place to an other.
    depends
    do want it to move by itself, under your control, what?
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  27. #2007
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    By it self so that the card starts from the pile and place it self at my desired location

  28. #2008
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ZereoX
    By it self so that the card starts from the pile and place it self at my desired location
    you mean like solitiare?
    when you press a button, it goes from the deck to right beside it?
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  29. #2009
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Like this from deck to where player cards are and a other cards goes to dealer side.

  30. #2010
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    ok, i figured out what was wrong with my code, but i dont know how to fix it. my old code:

    Code:
    for c = 1,100 do
    spike[c] = { a = math.random(100), b = math.random(100), x2 = math.random(400, 20000), y2 = math.random(240), x232 = x2+a, y232 = y2+b, firing = true} 
    end
    it thought that it had to take the x2 and y2 and a and b values i had defined as 0. i TRIED to do this:

    for c = 1,100 do
    spike[c] = { a = math.random(100), b = math.random(100), x2 = math.random(400, 20000), y2 = math.random(240),
    Code:
    x232 = spike[c].x2+spike[c].a, y232 = spike[c].y2+spike[c].b
    , firing = true}
    end

    BUT, now it gives me an error: test.lua:37:attempt to perform arithematic global on (?) a nil value.

    wtf?
    help pls.. thx
    --------------------------------------------------------------------------------------


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:00 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .