Jump to content

xana

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xana

  • Rank
    Member
  1. Bonjour en cherchant comment rajouter une commande pour s'accroupir j'ai remarqué qu'un bout du code à était désactivé ma question est pourquoi? Et comment le refaire fonctionner? ------------------------------------------- Hello seeking how to add a command to crouch I noticed a piece of code was off my question is why? And how to run it again? -- Check for crouching --if App.window:KeyHit(Key.ControlKey) then -- crouched = not crouched --end Bizarrement sa plante donc j'ai changer un peut le code en ceci Strangely his plant so I changed the code a bit in this -- Check for crouching if window:KeyDown(Key.A) then crouched = not crouched end
  2. xana

    random map

    Ça fonctionne merci, il devrai peut être rajouter plus de Script dans le system Thank you it works, it can be expected to add more in the system Script
  3. xana

    random map

    Merci pour le code mais étrangement après chaque démarrage du jeu ou en appuyant de nouveau sur le bouton le résultat et toujours le numéro maximum (dans mon code c'est 4) Thank you for the code but strangely after each start of the game or by pressing again on the result and still the maximum number button (in my code is 4) Script.enabled=true--bool "Enabled" Script.soundfile=""--path "Sound" "Wav Files (*.wav):wav" function Script:Start() self.v = math.random(1,4) end function Script:Use() if self.enabled then if self.v == 1 then self.component:CallOutputs("Use1") elseif self.v == 2 then self.component:CallOutputs("Use2") elseif self.v == 3 then self.component:CallOutputs("Use3") elseif self.v == 4 then self.component:CallOutputs("Use4") end end end function Script:Enable()--in if self.enabled==false then self.enabled=true self.component:CallOutputs("Enable") self.health=1 end end function Script:Disable()--in if self.enabled then self.enabled=false self.component:CallOutputs("Disable") self.health=0 end end function Script:Release() if self.v then self.v:Release() end end
  4. xana

    random map

    Merci pour les liens mais j'ai remarqué que c'est beaucoup plus compliqué que prévue donc je vais resté avec ma deuxième idée en tête celle du déclenchement aléatoire savez vous comment résoudre mon code qui est fort erroné Thank you for the links but I noticed that it is much more complicated than expected so I stayed with my second idea in mind that the random trigger you know how to fix my code which is very wrong
  5. xana

    random map

    Bonjour, c'est encore moi le nul en ce logiciel. Bref en essayant de créer des map Random ne sachant pas si c'était possible je me suis dit autant faire beaucoup de portes en formes de mur qui en commencant la partie s'active ou non j'ai voulue reprendre le code de BushBoutton.lua mais sa ne semble pas fonctionner. Merci pour vos aide, si il existe des façon de générer des map je suis preuneur un peut comme Monstrum désoler pour la pub. Hello, it's me again a draw in software. In short, trying to create Random map not knowing if it was possible I thought as do many doors wall shapes that starting the game is activated or not I wanted to resume code BushBoutton.lua but its not working. Thank you for your help, if there is way to generate a map I can preuneur as Monstrum grieve for the pub. Script.enabled=true--bool "Enabled" Script.soundfile=""--path "Sound" "Wav Files (*.wav):wav" v = math.random(1,2) function Script:Start() if self.soundfile then self.sound = Sound:Load(self.soundfile) end end if (v = 1;){ function Script:Use() if self.enabled then if self.sound then self.entity:EmitSound(self.sound) end self.component:CallOutputs("Use") end end } if (v = 2;){ function Script:Use() if self.enabled then if self.sound then self.entity:EmitSound(self.sound) end self.component:CallOutputs("Use2") end end } function Script:Enable()--in if self.enabled==false then self.enabled=true self.component:CallOutputs("Enable") self.health=1 end end function Script:Disable()--in if self.enabled then self.enabled=false self.component:CallOutputs("Disable") self.health=0 end end function Script:Release() if self.sound then self.sound:Release() end end
  6. xana

    light setting

    Basically I create doors that only open a half-and therefore to spend must be kneeling or code fpsplayer.lua code is not contien
  7. xana

    light setting

    I know I ask of you too but you do not have a code for bedtime lowers or character?
  8. xana

    light setting

    Thank you for this tip is if I was originally a Pannels slipping and red cover and green Thank you very much thanks to you I can create my light system
  9. xana

    light setting

    Hello, when creating my project I've realized that it was possible to change the color of a light via the editor, is there a way to change or draws a switch activated on / off light. In my example it is for doors that changes from red to green.
  10. Sorry, I had never noticed your message. But if its done for me its probably will do for the other, right?
  11. It seems that I'm not good for her, but a good system will be handy as Unity ^^ In any case, thank you for taking the time to answer me
  12. --Create a window local windowstyle = window.FullScreen + window.Titlebar if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end self.window=Window:Create(self.title,0,0,"640","480",windowstyle) self.window:HideMouse() I have not quite understand but now launching its crash
  13. Scripts/App.lua" : 11 : attempt to index global 'window' (a nil value) --Create a window local windowstyle = window.FullScreen + window.Titlebar self.window=Window:Create(self.title,0,0,"640","480",windowstyle) if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end self.window:HideMouse()
  14. I do not understand too how to create, it's a pity if these things do not be integrated base. There would be a tutorial? For already includes the English I can then "LUA" Otherwise thank you for all your reply
  15. Thank you as I saw he was doing promos I thought it was
×
×
  • Create New...