Skip to main content

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

Hi,

So, let's say you've got a textbox on the screen, and a button.

In the code for the button you can have it change the text in the textbox, the code for that would look something like this

on click do
 field1.value:"some words"
end

So that would make some words appear in the field named field1. Is this what you're trying to do? Apologies if I have misunderstood, I am not sure what you mean by a fixed value here.

Hi Millie, EXACTLY!!!!!! 

now i try discovery how doing a loop everytime to click in button, i searching in lil manual :)) 

(add some news words in script hehe)

tks 

Millie, I did it! 

but I have a question, how do I make a function blocked? example: 

if I click the button 10 times, field2 changes the number.

(+1)

So, you'd want something to happen only when the button has been pressed 10 times?

You would need a separate field (maybe a hidden one) to count the number of button presses, so you add 1 to the value each time. And then after you increment the value you have an if statement that checks when the value has reached 10.

(+2)(-1)

If you've got more questions it might be worth posting them in the programming questions thread https://itch.io/t/2445182/lil-programming-questions