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! / sprite hit still being 1 after a collison?!

Author
Message
CaSSmAn
22
Years of Service
User Offline
Joined: 12th Apr 2004
Location: FRANCE
Posted: 14th May 2004 20:43
if sprite hit(hadoken,ennemy)=1
gosub badaboummmmmm
endif
...after this the return value of the sprite hit still being 1.
what can i do plz ?

A shadow passed...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th May 2004 23:26
Funny...Sprite hit should only count once??? Anyhow you could move the two sprites apart.

CaSSmAn
22
Years of Service
User Offline
Joined: 12th Apr 2004
Location: FRANCE
Posted: 14th May 2004 23:39
i just want to know how i can the sprite hit value return to 0...
can i ?
Pincho Paxton i don t see what u mean

A shadow passed...
comando 300
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 15th May 2004 00:14
hit=sprite hit(hadoken,enemy)
if hit=1:gosub badaboummm
endif

badaboummm:
make all that thingie you have to code for when the hadoken hit the enemy
hit=0
return


I think that do the trick

CURRENT PROJECT: RETRO PAC-MAN
CaSSmAn
22
Years of Service
User Offline
Joined: 12th Apr 2004
Location: FRANCE
Posted: 15th May 2004 13:07
yes thx

A shadow passed...

Login to post a reply

Server time is: 2026-06-09 13:56:23
Your offset time is: 2026-06-09 13:56:23