Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi there!

1) there is something wrong with your synthax. The method `.includes()` returns a boolean value, which can be true or false. When you use `includes('NormalPlatform').meta`, what you are really doing is one of those:

  • true.meta → Returns undefined because there is no meta property on true.
  • false.meta → Returns undefined because there is no meta property on false.

If you want to check just the note fields, just use this:

console.log($dataMap.events.find(e => e && e.note.toLowerCase().includes('normalplatform')))

This will return true if the note field has ´normalplatform´. Also, you can see I checked using lower cases, because I did set all the note event to use lower case on this check. This is good, since you don't need to worry about using the words with the proper case.

But, if you want to check the .meta property of an event, then you can't use lowercase trick, you need to check the property name of the .meta exactly(they are case sensitive):

console.log($dataMap.events.find(e => e && e.meta.hasOwnPropery('NormalPlatform')))

2) my plugin does not store the information on the .meta property of an event to avoid compatibilities. In fact, he stores on a new meta property: `.metaEli`

3) I don't know why you are using this script call, but my plugin code provides ways for you to check if an event is a platform and also what type of platform:


So if you want to check if an event is a normal platform, better use something like that:

$gameMap.events().some(e => e.isNormalPlatform())

This will return true if any event of the map is a normal platform.

4) I hope I manage to help! Otherwise, let me know what you are doing so I can better help you

5) Thanks for the cumpliments by the way. I glad you liked my plugins ^^

Thanks for the in-depth response!  I was asking a friend to help me with debugging my issues, but I suspect they might have been using something like Claude Code to help (🤮)so I think it's best if I just keep asking you directly.  What I'm trying to make is a very simply minigame that's a sidescrolling skateboarding game where a skateboarding dog has to avoid obstacles by "dodging" (moving up or down) and jumping (which I am also using your plugin for) over holes.  Ideally, I was also hoping to have him be able to jump up onto higher areas.

I've managed to get some of this working with him automatically moving left/having limited lives when touching obstacles, but I'm having a lot of trouble getting him to "land" on the platforms, and I suspect this is because I'm trying to do more of a side-view vs top-down style minigame.  But currently, no matter how I try to set it up using the tutorial, he keeps just falling straight through the platforms.  If you'd be willing, I would love to show you more specifics to get help with, wherever is easiest for you to do that.

Oh I see. Well, this is very specific. I guess the first thing here is we discover why he is falling through the platforms. If you can pack a sample project replicating the issue, something that I just hit playtest and try to play the minigame, it will be helpful.

But you need to send it to me on my discord: hakuenstudio

(+1)

Thank you! I can't message or send you a link (since we don't share any servers/aren't friends) so I just sent you a request!