Author Topic: I need help..  (Read 2991 times)

0 Members and 1 Guest are viewing this topic.

Offline BalancedFury

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 722
  • Rating: +29/-2
    • View Profile
I need help..
« on: September 20, 2011, 09:33:43 pm »
I'm making my first game : Slider of Death, and i'm stuck...
I don't know how to limit the number of slides allowed.. :(
I really need help! :crazy:
Antonio Nam = DualBLDR = Tony Arthur... U choose!





JOIN THE PETITION TO ADD THIS EMOTICON!!
[|:{P ------->


Yo dawg I herd u lost the game game so I coded the game game in your calc so you can lose the game game while you code your code about losing the game game.

Offline sqrt(Time)

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +4/-0
    • View Profile
Re: I need help..
« Reply #1 on: September 20, 2011, 11:04:28 pm »
Your question was a little vague, but I think what you want is something like:
-Make a variable for storing the number of slides so far - start it with 0.
-When users does a slide, add one to that variable.
-After the slide has been completed, check if they've won; assuming they have, thentell them and the game.
-Else, check if the number of slides so far = the limit; assuming they have, then tell them they've lost. Else, wait for the next move.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: I need help..
« Reply #2 on: September 20, 2011, 11:24:45 pm »
First off, what is a slide?

Also, do you think you can post a sample of your code or a reasonably detailed summary of your code?

Without really knowing what you're having trouble with, it's hard to help you :)
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline BalancedFury

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 722
  • Rating: +29/-2
    • View Profile
Re: I need help..
« Reply #3 on: September 21, 2011, 09:12:08 pm »
First off, what is a slide?

Also, do you think you can post a sample of your code or a reasonably detailed summary of your code?

Without really knowing what you're having trouble with, it's hard to help you :)
Im making a game that contains a series of sliding puzzles. I am trying to limit the number of slides until it is game over.
Antonio Nam = DualBLDR = Tony Arthur... U choose!





JOIN THE PETITION TO ADD THIS EMOTICON!!
[|:{P ------->


Yo dawg I herd u lost the game game so I coded the game game in your calc so you can lose the game game while you code your code about losing the game game.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: I need help..
« Reply #4 on: September 21, 2011, 10:39:49 pm »
How about you program that in after the actual framework of the program.  then you can easily add it in w/o working around it.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: I need help..
« Reply #5 on: September 22, 2011, 07:23:26 am »
set a variable.
so like num_of_trial -> C
and you can decrease C whenever you use a turn so you can include like C-1->C
and you can put game over if C=0.
Sig wipe!

Offline BalancedFury

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 722
  • Rating: +29/-2
    • View Profile
Re: I need help..
« Reply #6 on: September 22, 2011, 09:55:26 pm »
Thanks for helping me!
Thank you Come Again~ Ding!(Chinese Bell Sound)
« Last Edit: September 22, 2011, 09:56:09 pm by DualBLDR »
Antonio Nam = DualBLDR = Tony Arthur... U choose!





JOIN THE PETITION TO ADD THIS EMOTICON!!
[|:{P ------->


Yo dawg I herd u lost the game game so I coded the game game in your calc so you can lose the game game while you code your code about losing the game game.