Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Events through events but not through tiles?

Im experimenting with some kind of pacman, but now my problem is: The ghosts can move over the coins you spare, but if I do so, they can also walk over walls. I dont want that... But if I make it so they dont walk over walls, they also dont walk over the coins. Can someone help me please:D?
 
Hahahaahahhahaha! That I didnt think of that. Thanks!
Lets try.
EDIT: Ok, its working. Thanks!
EDIT2: New question:
In PacMan, the ghosts are just wandering around randomly, but if they see you, they go after you. Can you also make that with events?
 
Yes. But my problem now is a bit hard to explain, so maybe you have to try it by yourself.
If you walk, and the ghosts try to reach you, they also try, because they want to reach you, to walk trough the wall. You understand? Hmm...
Ok. You walk in the maze. The ghosts are set to "move towards player'(or something). Well. If there is a wall between you and the ghosts, the ghosts try to get trough the wall, because they want to reach you. Well, now the problem is, they almost dont move. Because they cant go trough the wall.


EDIT: Got the View Range script, but I still have the same problem...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top