| Off Topic > Games |
| Game maker-How to make enemy walls? |
| (1/3) > >> |
| Muzzles56:
For my ICT class we are using game maker as part of our course. I have my enemies moving side to side, however, I don't want enemies falling off the platforms. So, I decided to make invisible walls at the edge of the platforms. This prevents them from falling off, but the player cannot walk through them. How can I change it so that the player can walk through this object, but the enemy cannot? |
| tails:
Check what the object colliding with it is before you do the actual collision bit. |
| Muzzles56:
--- Quote from: tails on March 05, 2013, 07:01:00 PM ---Check what the object colliding with it is before you do the actual collision bit. --- End quote --- The object is just a 1x2 invisible sprite with solid properties |
| tails:
I'm sure that doesn't really change much. I don't know anything about the newer game maker though :( |
| SpreadsPlague:
--- Quote from: Muzzles56 on March 05, 2013, 07:03:52 PM ---The object is just a 1x2 invisible sprite with solid properties --- End quote --- he means from a logic perspective. an entity collides with a wall is the entity a player? --> do not restrict the player movement is the entity a monster? --> stop the monster from moving (and probably turn it around if your game is 2D) there's probably a simple way to do this in game maker but I don't use game maker because using game maker is like using scratch and that's silly. |
| Navigation |
| Message Index |
| Next page |