Re: A85: Mapping Routine


[Prev][Next][Index][Thread]

Re: A85: Mapping Routine



Ahh, change all

jp	&anything

to

JUMP_(	anything)

That might be the problem.

To see if it "hits" something, basically check your map data for where the
character is.  If it's set to 0, then it's blank, so he can walk there.  If
not, he can't move.

At 04:32 PM 7/27/97 -0400, you wrote:
>Ok, I put your routine in and changed everything so it will work for ZShell,
>but when I run my game, I get a message saying, "ERROR 14 UNDEFINED" just as
>if I was running a program. Any ideas? I don't need to know how to move a
>sprite, I did that already, but I will need help finding if it "hits"
>anything...but I would like to get this problem resolved first.
>
>Jansson Stout
>jes247@aol.com
>
>
>In a message dated 97-07-27 14:37:58 EDT, you write:
>
><< Do you have your map drawn already?  Are you using aligned sprites are
> unaligned sprites?
> 
> If you want to convert my Usgard sample to ZShell, replace all the
> instances of:
> 
> ld	hl, &anything
> 
> to
> 
> ld	hl, anything
> push	de
> ld	de, (PROGRAM_ADDR)
> add	hl, de
> pop	de
> 
> Depending on some of the places I used relocation at, the push de / pop de
> may or may not be necessary.
> 
> Then replace the LIB_CALL_(SPRITLIB,PUTSPRIT) with
> 
> CALL_(	PutSprite)
> 
> And be sure to include the PutSprite code in your source file.
> 
> If you need help drawing a moving sprite, finding where it should be drawn,
> and determining if it "hits" anything, I can help you with that as well. >>
>
>
>
---
Evil Jim
Viva La Mexico
<eviljim@geocities.com>
http://www.geocities.com/TimesSquare/Arcade/8210/
I want to die in my sleep like my Grandfather, not screaming in pain like
the passengers in my car...


References: