Skip to main content

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

About Scripts

A topic by alexsilent created Jan 25, 2023 Views: 434 Replies: 10
Viewing posts 1 to 6

I'm trying to enter the Bitsy contest.

And I would like to know a couple of questions about scripts:

1) Is it possible to make comments in scripts?
// My Comment

2) Is it possible to add any variable number to the name of the sprite?
{set-var local-number 3}
{transform-sprite "bar"+{var local-number}}

(1 edit)

I'm just thinking about HUD Health/Energy Bar ^_^'

Developer(+1)

Sorry, you can't do comments or combine strings and numbers in the current version -_-

(15 edits) (+1)

Okay! :'(
Anyway, I like Mosi! <3
It's more advanced than Bitsy.

PS Just my wishlist for Mosi:

1) comments
// My Comment

2) functions (one function for different sprites)
{My_Function_Minus_HP 1}

3) numbers to string and strings+strings operations
{ set-var MyString {num-to-str My_Integer} }
{str-mix "Room-" {num-to-str My_Integer} "!"} // Array of strings

4) "OnStep" in Room and/or in World Scripts :'D
(scripts in rooms after any Avatar's step)

5) Clamp and Abs Math
{clamp My_Number 0 10}
{abs My_Number}

PPS I'll try to make the game without HUD for the Bitsy contest

Developer(+1)

Thanks! Good luck~

Thanks! :3

(1 edit)

Okay. I found how to make comments xD
It's works for me in Mosi.
{//My Comment} 

(1 edit) (+1)

Just a crazy idea to make HUD ^_____^'''''''''''

(2 edits)

Wanna turn it to:

{pick {sprite-at 1 0}}
{set-var HP {clamp {HP 0 10}}} // Clamp 0-10
{transform-sprite {str-mix "bar" {num-to-str HP}}} // "bar"+string(HP)
{/pick} 

^_^'

Just made some progress with HUD :D

Cool, I really would appreciate some assistance for fully understanding the inner workings of Mosi and heavily customizing it to my monthly project’s needs.