
-----------------------------------
Homer_simpson
Sun May 04, 2003 10:57 pm

mortal combat game...
-----------------------------------
k here's the code
Use p and k to punch and kick
I'm going to make a 2d combat game for now i'm working on the body of the program later on i will make addons and texture it using jpegs.
Any suggestions or cooperations are welcome.... =)

-----------------------------------
Homer_simpson
Sun May 04, 2003 10:59 pm


-----------------------------------
*thinks*
Do u think it's worth the time ??!!
it took me almosy an hour and a half to mae the code above... =/

-----------------------------------
Asok
Mon May 05, 2003 11:49 am


-----------------------------------
Nice, I look forward to seeing the game!

but where are the FIREBALLS!

 :D

-----------------------------------
Tony
Mon May 05, 2003 11:53 am


-----------------------------------
grr...  :evil: plz submit code as attached text file (better yet, *.t)

-----------------------------------
JSBN
Mon May 05, 2003 11:57 am


-----------------------------------
Yaowza! it is looking good, cant wait to try it on my comp at home instead of this laggy pice of crap at school...
Can't wait to see the final product  :lol:

-----------------------------------
Homer_simpson
Mon May 05, 2003 3:46 pm


-----------------------------------
Sorry tony =(
forgot about the bandwith problem  :oops:

-----------------------------------
Ravage
Mon May 05, 2003 7:19 pm


-----------------------------------
Wheres the code?

-----------------------------------
Homer_simpson
Mon May 05, 2003 7:53 pm


-----------------------------------
download the ttachment tony doesn't want people to put the code in their posts cuz of bandwidth problems =/, so u'll just havto download the post...

-----------------------------------
Office of the Registar
Mon May 05, 2003 9:15 pm


-----------------------------------
wow. :shock: 
that's all i have to say.

-----------------------------------
Tony
Mon May 05, 2003 10:09 pm


-----------------------------------
now that I actually got to view the program, I got one little sujestion - get rid of input buffer. Or rether when reading from it, read the very last input. Because otherwise I can keep hitting punch key really fast for a whille while, then go get a drink while the guy keeps on punching for the next minute or so.

Basically while reading input, just skip through all of it till its clear, then execute the last valid command send.

-----------------------------------
Homer_simpson
Mon May 05, 2003 10:19 pm


-----------------------------------
Fixed the bug tony it just needed a few more lines... =)
download the new attachment

-----------------------------------
Tony
Mon May 05, 2003 10:44 pm


-----------------------------------
well now it just gous to the next move before even finishing it.

I'm gonna fake a punch and while you press defent against a punch, I quickly kick you in your nuts instead  :twisted: 

well since kicking is much slower, I'll probably end up faking a kick and punching you instead, but you get the idea. Controls are still buggy.

-----------------------------------
Lone]2
Wed May 07, 2003 4:27 pm


-----------------------------------
the guy has no neck!!! :lol: 
other than that its ok....
but.........
when u press p like continously and stop....
the guy will keep on punching until the amount of punches r equal to the amount of p
maybe u shud make it so that when the animation is punching.. the user inputs does nothing

-----------------------------------
Homer_simpson
Wed May 07, 2003 6:01 pm


-----------------------------------
have you tried the second attachment.....  :roll:

-----------------------------------
Lone]2
Wed May 07, 2003 6:32 pm


-----------------------------------
oops......
didn't see the 2nd one :oops: 
heheh........
ooooouuuuuu looks great....
keep up good work man! :wink:

-----------------------------------
Blade
Wed May 07, 2003 7:39 pm


-----------------------------------
well.... i say it looks great, but in the first attachment i changed something.... made it run faster... like tony said about goin to the washroom... or even goin out to go get six pack, drink it and he still be punchin or kickin....

this is your main program
loop 
    if com = "" then 
        if hasch then 
            case getchar of 
                label "p" : 
                    com := "punch1" 
                label "k" : 
                    com := "kick1" 
                label : 
            end case 
        end if 
    end if 
    action (com, frame) 
    drawguy 
    View.Update 
    delay (10) 
    cls 
end loop 

i know you changed it the second time to look like a fake, but you still had to hold the button to be able to do it.... so why not use Input.Keydown instead?

loop
    if com = "" then
        Input.KeyDown (anykey)
        if (anykey ('p')) then
            com := "punch1"
        elsif (anykey ('k')) then
            com := "kick1"
        end if
    end if
    action (com, frame)
    drawguy
    View.Update
    delay (10)
    cls
end loop
but dont forget to add
var anykey:array char of boolean

-----------------------------------
Homer_simpson
Wed May 07, 2003 9:29 pm


-----------------------------------
Keydown always confuses me for some reason but i was gonna change it to keydown when i'm done with it... =)

-----------------------------------
Blade
Wed May 07, 2003 9:45 pm


-----------------------------------
hehe... its a good idea... you should do some practise with it because it is 100X more effiecient than getch()... try the code i gave you, and you'll see  :D

oh, and dont forget that when you are using if's with the Input.KeyDown you cant use double quote (") you have to use single quote (') .... i got an error before because i thought they did the same thing.... wierd eh?

-----------------------------------
Homer_simpson
Wed May 07, 2003 10:15 pm


-----------------------------------
thx for the tips boobyman... =Ãž

-----------------------------------
Ancalagon The Black
Mon May 12, 2003 9:28 pm


-----------------------------------
Aghh! :evil:  :evil:  :evil:  Why is it whenever I try to view a submission, an error occurs on every line with View.Update in it?! Does this happen to anyone else cause it's really starting to piss me off! :evil:

-----------------------------------
Dan
Mon May 12, 2003 9:30 pm


-----------------------------------
Aghh! :evil:  :evil:  :evil:  Why is it whenever I try to view a submission, an error occurs on every line with View.Update in it?! Does this happen to anyone else cause it's really starting to piss me off! :evil:

do you have turing 3.x? becuse i blive that view.update is only for 4.x and up.

-----------------------------------
Ancalagon The Black
Mon May 12, 2003 9:31 pm


-----------------------------------
I gots me the latest patch from de turing website!

-----------------------------------
Tony
Mon May 12, 2003 9:38 pm


-----------------------------------
i dont think there's a patch from v3 to v4... :?

go to help -> about

and see what version you have

-----------------------------------
Ancalagon The Black
Mon May 12, 2003 10:05 pm


-----------------------------------
It sez 4.04c, the patch I got. So I dunno what's up with it but it should be the latest. I originally got it so I could create stand-alone programs but I also figured the latest update is better than the version I originally had, which was 3 point something or the other.

-----------------------------------
Homer_simpson
Mon May 12, 2003 10:08 pm


-----------------------------------
IF yer from thompson school u can download turing from here...http://www.compsci.ca/bbs/viewtopic.php?t=776

Mod: No need to doble post -Dan

-----------------------------------
Corpy
Mon May 26, 2003 9:17 pm


-----------------------------------
ya really good. That game is gunna be sick :D Tony? whats with the urge to kick the balls. :shock:  :shock: no affence.
