|
Post by gazj82 on May 26, 2013 17:45:12 GMT
Started making a clone of Pickaxe Pete for the Phillips G7000 using AGD. This is my first go with AGD! I need the rocks which are sprite type one to detect when they collide. If I put this bit of code in they just detect there own selves and die immediately. Anyone know a way round this. I have attached a fuse snapshot docs.google.com/file/d/0B03c0zdETGEpak4wSjNvOTUzRmM/edit?usp=sharing
|
|
|
Post by Jonathan Cauldwell on May 29, 2013 15:54:07 GMT
At the start of the sprite event you could try this:
LET TYPE = 255
To temporarily change the current sprite to a different type so the collision code won't pick it up. Do your usual processing then finish by setting the type back at the end:
LET TYPE = 1
|
|
|
Post by gazj82 on May 31, 2013 18:00:05 GMT
That sounds good, I'll give it a try. Just discovered 4.1 after starting on v3. So I may have a restart to take advantage of new features.
Thanks for your help and a great tool! Ever thought of doing a C64 version?
|
|
|
Post by Jonathan Cauldwell on Jun 1, 2013 11:15:36 GMT
Looking at the code again, I don't think the solution I gave you will work properly. If it doesn't work, try replacing LET TYPE = 255 with
ASM 221 ASM 54 ASM 0 ASM 255
and LET TYPE = 1 with
ASM 221 ASM 54 ASM 0 ASM 1
Be extremely careful how you type these in!
As for a C64 version, it would take me too long to convert AGD to a machine with a different processor inside. However, if an experienced developer were to volunteer I'd be very happy to provide every assistance.
|
|
|
Post by gazj82 on Jun 23, 2013 19:00:43 GMT
Hi Sorry, for the delay in getting back to you on this. I only get a few hours a week to work on this and it has taken me this long to rewrite for v4. Unfortunately your methods above don't seem to work. Anymore ideas?
|
|
|
Post by Jonathan Cauldwell on Jul 14, 2013 19:59:39 GMT
After a bit of investigation I've concluded that there's a problem with the way the COLLISION command compiles in AGD 4 so I'll have to address that.
The ASM commands should be okay in AGD 3.5. They'll also work for the CPC version.
|
|