1. Making platform game

Hi if anybody out there could please help me with me collsion detection for
a mode 19 screen and virtual screen to get my game scrolling over my whole
level not as my guy gets to the edge of the screen wiping the screen and
puting in a new one i would REALLY appreciate it.

Piotr Dubla a.k.a Mr. Gibbles

new topic     » topic index » view message » categorize

2. Re: Making platform game

Hi Piotr, I recently sent a routine to check colision to Charles, of
maillist, and he didn't try to kill me, then I'll send it to you here,
please, if it doesn't work, write me and I'll see what we can do.
 I think that it will help you...
 This routine will check the contact of two objects, it will return 1 if
occurs contact and return 0 if didn't.
 If you need more advanced contact code, for attack and other actions,
write me.


--------- CODE starts here (without this line, obvious) ------------

function check_contact(atom a, atom b, atom x, atom y)
-- pay atention: a and b are coordinates of character, and x and y are of
item, for example
        if a=x and b>y-10 or a=x and b<y+10 then
                return 1
        else
                return 0
        end if
end function

An amateur of programming always ready to help...
Eduardo Uemura Okada (or if you prefer, //_ERX)
e-mail: cool at art.com.br

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu