Game
Untitled Knight Project
8 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

We are under attack!

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).

Strange Umbrella

A house I've built a while ago. :)

It nicely separates the snowy biome from the grassy one.

It's built with painted Ebonstone.

Today I tackled drawing different variations of facial expressions for one of the main characters in Eden. What do you think of it? :) Eden: https://gamejolt.com/games/Eden/592698

Levels' maps.

brung back my old oc plus a new one

...they don`t have names yet tho

not the greatest house, but it's a house! :D

I mostly build 3D First Person Shooter game mechanics in Unity, and in this I'm just showing C4 mechanics I made for a little side project I am working on! :)