|
Post by dominoslayer on Mar 18, 2017 22:37:30 GMT
[Moved because I think I originally put it in the wrong board]
I've nearly finished a game using AGD 4.0 but there are a few things that I just can't manage to do
The two major priorities are
1. I need to merge the Ladder type and L/R patrolling types together to make an enemy that walks left and right but does a random check every time they are under or above a ladder so that a 3rd of the time they go straight up or straight down the ladder, and when they get to the bottom or top they resume patrolling.
2.EDIT: Never mind, worked it out myself (though it doesn't work all that well)
Those two I would really appreciate help on
----------------------------------------------------
Just a question, can you make the sprite go in front of objects of the same colour without glitching in AGD? or behind the object?
|
|
|
Post by alessandro on Apr 5, 2017 14:01:31 GMT
Hi, I did something similar for the 5th and last level of Cousin Horace. I don't have the files here right now to show you some script examples, but basically you should set a random value check so that, if the sprite hits a ladder (IF LADDERABOVE / IF LADDERBELOW) and that value is, say, 1, then it goes up or down accordingly, otherwise it keeps moving horizontally.
As for the last request, AGD does not allow sprite masking. Sprites can be made walking behind text redefined as blocks in the Character set editor, but it might lead to flicker.
|
|
|
Post by dominoslayer on Apr 13, 2017 15:23:41 GMT
I don't have the files here right now to show you some script examples, but basically you should set a random value check so that, if the sprite hits a ladder (IF LADDERABOVE / IF LADDERBELOW) and that value is, say, 1, then it goes up or down accordingly, otherwise it keeps moving horizontally. Sprites can be made walking behind text redefined as blocks in the Character set editor, but it might lead to flicker. Thanks for the help, it slowed down a good bit but I got the foreground working - About the AI, yeah, that's how I thought I should go about it but I never had any luck getting it to work, it was about 15+ hours of watching the flame sprites completely freeze, or constantly doing random checks on the ladder causing them to go up a pixel and down a pixel etc etc, once I got the flame sprite to go down but it never went up. To be honest I'm probably calling it quits, I think the whole thing is likely broken, it won't save and load from TZX or anything and every time I try to fix a problem now it creates glitches with unrelated things, There doesn't seem to be that much interest anyway and my window of time has kind of run out (need to go back to work heh). I didn't really have the knowledge or experience to do this, bit off way more than I can chew lol.
|
|