The DjBestFegor'Z

Membres
  • Compteur de contenus

    7
  • Inscription

  • Dernière visite

Tout ce qui a été posté par The DjBestFegor'Z

  1. The DjBestFegor'Z

    [projet-pc] Lids

    ... hum... eh bien je rappelle qu'on est le 2 juillet !
  2. Merci Arantes mais je voudrai demander comment faisont-nous apparaître des images (avec quelle commande) ?
  3. J'ai tout recommencé: Voici mon ancien: --Voici mon premier script !--Les Variables d'ÉcransSCREEN_TOP = 1SCREEN_BOTTOM = 0BGBotText = Screen.LoadTextBG()BGTopText = Screen.LoadTextBG()Screen.Initialize( SCREEN_BOTTOM, BGBotText )Screen.Initialize( SCREEN_TOP, BGTopText )--Les 2 textes indiquants le n° de l'écranBGBotText:PrintXY( 1, 1, "ECRAN DU BAS" )BGTopText:PrintXY( 1, 1, "ECRAN DU HAUT" )while true doif Stylus.X() >= 50 and Stylus.X() <= 70 and Stylus.Y() <= 150 and Stylus.Y() >= 100 thenBGBotText:PrintXY( 10, 10, "Vous pressez le bouton!" )--J'ai modifié les coordonnées pour ne pas que ce message interfère avec "ECRAN DU BAS" --Pour effacez le "Vous pressez le bouton!" si celui ci n'est plus presséelseBGBotText:PrintXY( 10, 10, " " )end--Attendre la pression d'une toucheif DSLua.WaitForAnyKey() thenbreakendend Voici le nouveau: -- Voici mon premier script !-- Variables d'ÉcransSCREEN_BOTTOM = 0SCREEN_TOP = 1BGTopText = Screen.LoadTextBG()BGBotText = Screen.LoadTextBG()Screen.Initialize( SCREEN_TOP, BGTopText )Screen.Initialize( SCREEN_BOTTOM, BGBotText )-- Boucle principale ~while true do -- "Vous appuyez sur l'écran !!" if Stylus.Down() then BGBotText:PrintXY( 2, 10, "Vous appuyez sur l'écran !!" ) BGTopText:PrintXY( 2, 10, Stylus.X()) BGBotText:SetColor( 5 ) else BGBotText:PrintXY( 2, 10, " " ) endend-- Fin de Boucle principale
  4. C'est bon Arantes, j'ai trouvé le problème ! Merci pour ton aide quand même ! Voilà!, enfin je vais pouvoir continuer mon jeu l'esprit tranquile !
  5. Merci beaucoup Arantes!, mais le problème, c'est que ça ne marche toujours pas ! il me dit : Failed to Load: 3`/cf/SCRIPTS/Mon projet.Lua:1:unexpected symbol near ` '' {PS.: Oui je sais , j'ai confondu avec un autre logiciel que j'utilisais juste avant dsl ! Sinon c'est bien sûr mon 1er script en LUA, pareil sauf en RUBY pour RPG Maker, et un peu en DarkBasic .}
  6. @Arantes Merci beaucoup ! (mais désolé pour ton problème; quand je dis que je suis débutant, c'est que c'est mon 1er script en C++ !) Encore un problème : -- Voici mon premier Script ! -- Les Variables d'Écrans SCREEN_TOP = 1 SCREEN_BOTTOM = 0 BGBotText = Screen.LoadTextBG() BGTopText = Screen.LoadTextBG() Screen.Initialize( SCREEN_BOTTOM, BGBotText ) Screen.Initialize( SCREEN_TOP, BGTopText ) -- Les 2 textes indiquants le n° de l'écran BGBotText:PrintXY( 1, 1, "ECRAN DU BAS" ) BGTopText:PrintXY( 1, 1, "ECRAN DU HAUT" ) If Stylus.X() >= 50 and Stylus.X() <= 70 and Stylus.Y() <= 150 and Stylus.Y() >= 100 then BGBotText:PrintXY( 1, 1, "Vous pressez le bouton!" ) end -- Attendre la pression d'une touche DSLua.WaitForAnyKey() Là je ne comprend pas du tout le problème ! J'ai cherché mais bon ... pas trouvé !
  7. Salut ! Comme vous le voyez je suis nouveau et donc faut m'expliquer exactement ce que je doit faire du début à la fin lol ! En fait, je n'ai pas réussi à faire marcher rien qu'au début mon "helloworld" (ça commence bien ! ) Au début, j'ai tout recopié et ça me mettait un message d'erreur ! Donc j'ai fait copier/coller, et là, qu'est-ce qu'il me met? : ERROR: script result 1 function `/cf/SCRIPT/helloworld.Lua:4: a ttempt to index global `BGBotTex t' (a nil value) stack traceback : /cf/SCRIPT/helloworld.Lua:4: in main chuck' Voilà ! Si vous pouviez m'aider ça m'arrangerai lol !! Au fait, si vous avez besoin de savoir exactement ce que j'ai mis, voilà : SCREEN_TOP = 1 BGTopText = Screen.LoadTextBG() Screen.Initialize( SCREEN_TOP, BGTopText ) BGBotText:PrintXY( 1, 1, "Hello World!" ) BGTopText:PrintXY( 1, 1, "Hello World!" ) SCREEN_TOP = 1 BGTopText = Screen.LoadTextBG() Screen.Initialize( SCREEN_TOP, BGTopText ) BGTopText:PrintXY( 1, 1, "Hello World!" ) SCREEN_TOP = 1 BGTopText = Screen.LoadTextBG() Screen.Initialize( SCREEN_TOP, BGTopText ) BGTopText:PrintXY( 10, 12, "Hello World!" ) DSLua.WaitForAnyKey() C'est tout !