issues with pickupshrub

Mugi

Member
i cant seem to be able to trigger the pickupthing tiles at all currently. Is this just a thing that has to do with the collision check the code has (it has a comment saying that sprites wider than 16px will cause anomalous behavior.)

my sprite is 24x24 so that's one thing.
did anyone ever produce a fix for this, and/or is this possibly solved in 4.1.0 ?

thanks.
 

dale_coop

Moderator
Staff member
So you was right. it is a pbm of collision check.
Joe made a lot of work for the new version, so it might work completely differently in the 4.1
 

dale_coop

Moderator
Staff member
For your "demo" you could try making a modification in the TileScripts\PickupShrub.asm script, line 29, replacing:
Code:
	LDA collisionPoint2
	CMP collisionPoint3
	BEQ twoThreeSame
	JMP dontPickUpShrub
with:
Code:
	LDA collisionPoint2
	ORA collisionPoint3
	BNE twoThreeSame
	JMP dontPickUpShrub
it will check if there is, at least, one collisionpoint with the pickup tile (if your sprite is different than 16x16px, so it might work as well)
 

Mugi

Member
it's a bit iffy, but atleast it works with that.
thanks. that'll get me to work on the mechanic i need this for in the meanwhile.

lets hope the collision stuff works a bit better in 4.1.0 :)
 
Top Bottom