Search found 22 matches

by kelyanok
Tue Apr 14, 2020 12:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: give roles randomly
Replies: 9
Views: 5042

give roles randomly

i have a game where theres 9 players and i need to give 9 roles randomly to all of them. i know that there is already a thread about that but i cant convert it to what i really want. i could make a whole 1000 lines code that checks every time if a player has a role check what is it but i am sure tha...
by kelyanok
Sun Apr 12, 2020 10:40 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: grab following a line
Replies: 1
Views: 1674

grab following a line

how do i make so the player can grab an object but he cant move it everywhere, only at points that i choose? (not floating points, maybe a line or a curve)
by kelyanok
Tue Apr 07, 2020 3:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Adjusting image opacity using slider
Replies: 7
Views: 4112

Re: Adjusting image opacity using slider

hello
i want to use a scrollbar to adjust the penheight and the penwidth to make a drawing game; i used your code Klaus but it didnt worked..

Code: Select all

on scrollbardrag tThumbPos
   set the penheight to tThumbPos
   set the penwidth to tThumbPos
end scrollbardrag
what did i do wrong??

Kelyan
by kelyanok
Tue Apr 07, 2020 3:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Choose randomly in a list
Replies: 5
Views: 3336

Re: Choose randomly in a list

hello all
thank you so much for your responses!
bogs wrote:
Mon Apr 06, 2020 2:16 pm

Code: Select all

put any word of field 1 into field 2
this one is my personal favorite for people that are asking the same question.
thanks to all!
by kelyanok
Mon Apr 06, 2020 3:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: send app to xcode
Replies: 0
Views: 3166

send app to xcode

hello i want to send my app to xcode to try it on my phone. i have xcode 11.4 on macos catalina, and its working prefectly well. ive installed the ios simulator 13.1. so i did the standalone app settings for iphone and for mac, but when i try to save my app as a standalone app with the ios settings ...
by kelyanok
Mon Apr 06, 2020 2:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Choose randomly in a list
Replies: 5
Views: 3336

Choose randomly in a list

hello so im making a game where you need to draw something random in a list. so on mouseUp, the app needs to pick a random word to draw and display it in a field. i wanted to do something like on mouseUp put random(10) into rRandom if rRandom is x then put the x word of field "drawsList" into field ...
by kelyanok
Fri Apr 03, 2020 11:09 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Loading
Replies: 2
Views: 1777

Loading

hello i have a game where you earn money every second when you click a button. (the same game in the repeat thread for people that saw it) i wanted to add a progress bar to see when will you get the money; the time changes everytime you upgrade your "money earner". i reallly looked everywhere to kno...
by kelyanok
Thu Apr 02, 2020 8:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

oh ok. I'll think about it next time thanks
by kelyanok
Thu Apr 02, 2020 8:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

oh nevermind, i misspelled something. it works.
by kelyanok
Thu Apr 02, 2020 8:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

hello Klaus i didnt saw your answer, i did this: if aMoney > 9 then enable btn "levelUpFa" else end if so this works, but i copy paste it just after it to enable a btn when you are a 100, but didnt worked.. so: 1. is my code right? and 2. if it is not, what should i do? simply use your code? thanks
by kelyanok
Thu Apr 02, 2020 6:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

let me remember:

Code: Select all

...
if aMoney > 9
then
   enable btn "levelUp1"
end if
...
something like that. i tried to put this code after the "add 1 to aMoney" but it enabled the btn at like 1 money..
by kelyanok
Thu Apr 02, 2020 6:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

Hallo Klaus!

in my game, there is a level system. when you have 10 money, the btn levelUpFa is enabling. you click it, you loose 10 money, and you earn +1 money each second. i did it with my old code, but with yours i dont really know where to check my money ect..

can you help me?
thanks
kelyan
by kelyanok
Thu Apr 02, 2020 2:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

hello klaus!
you are a god! this works perfectly well! ill try to understand how this works otherwise thats cheating :D

thank you!!

oh and how do you stop it? :?
by kelyanok
Thu Apr 02, 2020 9:37 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

Re: repeat

hello klaus!
its the option 2. the player presses a button, waits 1 sec and earns 1 coin, waits 1 sec, earns 1 coin ect... i still didnt found my answer, ill maybe modify my game or something. thanks!
by kelyanok
Wed Apr 01, 2020 3:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: repeat
Replies: 23
Views: 11348

repeat

hello so i basically have a game where you gain money (yes thats gross but you dont need to know more) to gain money, you just need to wait. ive made an object that when you press it, you gain 1 coin every second, by doing: on mouseUp repeat x = 10 //this number is only to test wait 1 sec add 1 to a...

Go to advanced search