
-----------------------------------
aaron1046
Tue Jan 13, 2009 8:22 am

Help with my little game
-----------------------------------
Ok, im making a small really basic turing game for school for computers (Dhu)
And I'm having issuse..
Ok the game is like a maze, you move around, can't hit the walls, the walls 3 times you die and restart.
Also you can get "keys" I guess u could call them that open the door to move on.
Tho I'm having alot of difficulty..
Some with the cant hit the wall thing, I make some walls work but those few walls I did took like 4 hours to get to WORK!!
Maybe some one can help me out?
OR can help me finish it :)
PLEASE!!
 TY!

-----------------------------------
TheGuardian001
Tue Jan 13, 2009 3:19 pm

Re: Help with my little game
-----------------------------------
if you want this program to work properly, you are either going to need for statement. I would advise you to read the tutorial on arrays and try to use them.


Mod Edit: Fixed broken URL tag. No need for the quotes around the actual url. :)

-----------------------------------
saltpro15
Tue Jan 13, 2009 3:36 pm

RE:Help with my little game
-----------------------------------
I would advise the use of procedures instead of massive loops.  that way you're main loop is only about 15-20 lines long, and you only have to put 1 view.update in.

-----------------------------------
aaron1046
Tue Jan 13, 2009 8:12 pm

RE:Help with my little game
-----------------------------------
well sucks my class is only half a school year and this is my first year using turing, I don't know much of what you talk about BUT ill read about it to see what I can find out.
Still looking for help to finish my program if any 1 can help me
With my game Im trying to make a maze like game, can't touch the walls more then.. lets say 3-5 times. if so u die game over screen comes up.
U can get the items to open doors...
Thats about it..

-----------------------------------
ecookman
Tue Jan 13, 2009 9:24 pm

RE:Help with my little game
-----------------------------------
If you have no background in programming like using arrays, if statements,ect


this is one hell of a task to take on...


if I were you...i would do this as something extra and work on class assignments, building knoweldge on the fundamentals and then!, using all of your knoweldge create something really cool.


If this is your first crack at programming you will find  out shortly (depending on how well you can take in and understand stuff) that you want to hang your self.


unfortunately i am unable to download the file, but i have tried to do something simmilar. basically for the colosisions: for your walls set the points of them, take those points and make it so if anything touches it X happens (i think use boolean)


basically talking out the code it will be


if the mouse touches the wall the expression if salse, soo you loose a life. As a constant if the mouse isn't touching anyone of the points the expression is true untill interupted.


basically lots of if statements and boolean


the lives is surprisingly the easy part....
wil look something like

var life : (i think) int
life:={what number that you want}

if mouse touches wall boolean expression = false = life-1, reset (= 0 and vv = 0 and vv = 0 and vv = 0 and vv 