Game
Untitled Knight Project
9 years ago

Ghost Environments - GameMaker Surfaces


I had been trying to figure out a way to hide certain parts of the environment from the player and only reveal it when he gets close, like so:

5d0b1660ceb2f.gif

This all ties into the players ghost form, but so far, not sure how I am going to implement it as a main mechanic. So bear with me…

I had never used surfaces before in GameMaker, even after using it for a couple of years. I should have learnt about it much sooner, but I didn’t. So I started searching and came across this link:

http://www.davetech.co.uk/gamemakermasking

Now, this was pretty much what I wanted to achieve. The only problem I had was it only works by placing an image on top of another image or background.

So in my GIF, this is pretty much the same implementation, except I’m not using any fancy shapes or using the mouse. I am also not drawing the surface across the whole room and only on the section I want to be hidden.

My only problem I have now, is this will only work on this kind of level setup and not anywhere else. Reason being, I basically drew a rectangle over the tiles that was the same colour as the background.

What I want to achieve is going to be more complex. I need to figure out a way to store a portion of that background and put it on a layer infront of the tiles I want to hide without covering anything else.



2 comments

Loading...

Next up

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

Bandana Dee the Dream Friend

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

Just a Pico sprite

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?

If you have more of an acquired taste, the restaurants in Niravasi have you covered! Maybe skip the salad bar, though.

Very ambitious construction going on in Planet Zoo on Plays today. We're tryin'. LIVE: www.twitch.tv/dreamhackplays

We're knee deep in multiple large features and "game feel". Quick peek behind the scenes in this weeks Dev Blog: https://bit.ly/2QmmaQM