Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Môsi

A tiny game editor you can use on your phone or in your browser · By sg

I'm a newb, how do I make the game end?

A topic by scifirenegade created Dec 08, 2020 Views: 464 Replies: 9
Viewing posts 1 to 2

I'm making a simple collectathon using Mosi, just to try it out. I'm a newbie when it comes to programming, and would like to know how to make the game end. Thank you btw, and apologies if this isn't the right place to ask, but i'm a bit desperate (*´∀`*)

Developer(+2)

Hi! Absolutely you're free to ask questions here!

Mosi doesn't have built-in "endings" per se. It's a bit more geared toward open-ended exploration. Of course, you can construct an ending yourself a number of ways. You could teleport the player to a room that's enclosed on all four sides when they collect the last item, and provide some dialog to indicate that it's the end of the game. Or if they need to speak to a character to deliver their items, you could have that character let the player know they've completed their quest but that they're free to wander around more if they wish.

Hope that helps give you some ideas!

Ah! That's still nice! Thank you so much for your time and advice!

Sorry for bothering again, this is the script I used for teleporting the avatar, when he gets out of the "last room"

{if {lt {item-count eye} 1}} hmmm... {else} {move-avatar [first] [2] [2]} {/if}

Except it teleports the avatar to the room next to it, instead of the room called "first". I know I'm doing smth wrong here...

Developer(+2)

Try removing the square brackets - those aren't meant to be included, they just indicate where you need to replace stuff with your own text: {move-avatar first 2 2}

Thank you so much for your reply... again:D

(1 edit)

Neat, how does teleportation works? I am making a personal game for my friends and wanted to be able to use such a feat for my narrative. ^.^ EDIT: Just seen it my bad, how does the engine work though? I also wanna explain it in video format to some followers of mine. ^-^

Developer

Any questions in particular about the engine? If you feel like digging through the code, here's the github link: https://github.com/zenzoa/mosi/

(+1)

Fair, thanks. I have no specific questions thus far though I just made my second ever Mosi game for a friend of mine. ^^

Developer(+1)

Oh that's awesome!