Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Fighting Game- Characters

Author
Message
Riz
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location:
Posted: 20th Mar 2009 20:33
Hi i am currently working on a fighting game and was wondering how exactly would i have my characters come back down automatically when they jump in the air?
JSB DeSiGnS
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location:
Posted: 22nd Mar 2009 10:50
I'm making one too but i cant even do the fight part i'm such a noob
thats it so far

C:\Documents and Settings\Jasons STUFF\My Documents\Jason\2009\db
Riz
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location:
Posted: 22nd Mar 2009 16:29
No worries its not that hard in order to have a fight sequence youd have to first create your sprites load them to the screen to the proper x an y coordinates and then throw in some collision detection and you have your self a fight. something like this for example [/`Sprite Collision
`===================================================
`start main loop

sync rate 75
`Sprite collision
if sprite hit(2,4)
`play sound 4
Health1 = Health1 - 1
endif
if sprite collision(2,4)
`play sound 4
Health1 = Health1 - 1
`if Health2 = 0
`delete sprite 1
`sprite 2,x2,y2,20
`center text 320,240, "Player 1 Wins!"
Wait 500
`GOTO Gameover
endif
`endif
`End Sprite collision]

Login to post a reply

Server time is: 2024-04-16 11:50:44
Your offset time is: 2024-04-16 11:50:44