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.

New Map Class

I've working some months in a project that started when I need more than standard rpg maker scripts. I started deleting the old scripts and writing my own. But i got some problems when writing Map class. I want to create a simple collision system, like:
Code:
if @collision then

@char.stop

end
.

Thanks.
 
We need more information before we can help :P
How have you set up the tile data? How are the events handled? Where and what sets the @collision flag to true? What does the method #stop do?

#EDIT: If you deleted then Interpreter scripts, you're gunna have a bad time :P
 
ZenVirZan":2ebi719b said:
We need more information before we can help :P
How have you set up the tile data? How are the events handled? Where and what sets the @collision flag to true? What does the method #stop do?

#EDIT: If you deleted then Interpreter scripts, you're gunna have a bad time :P
So, before insert tiles, the @collision is what I can't do...

The #stop:
Code:
 

self.speed = 0

 
 

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