Search found 9 matches
- Sun Jun 05, 2016 1:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Remembering player names, timers and losing lives
- Replies: 4
- Views: 3279
Re: Remembering player names, timers and losing lives
Ok, I got the ask/ answer bit sorted. global tName on mouseUp // Go to next text box Hide Field "Text 2" Hide button "Button 2" show btn "button 3" ask "What is your name?" put it into tName end mouseUp global tName on mouseUp // Go to next text box answer tName & ", is that correct?" with "No" or "...
- Sun Jun 05, 2016 12:49 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Remembering player names, timers and losing lives
- Replies: 4
- Views: 3279
Re: Remembering player names, timers and losing lives
Sorry, forgot I asked this. I removed the "correct" card, and just made the submit button play the "correct" animation on the puzzle card, so it works a bit better now. I still am really stumped though. On my little intro card I have an ask "What is your name?" line, but I need a way to put the answ...
- Wed May 25, 2016 9:41 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Remembering player names, timers and losing lives
- Replies: 4
- Views: 3279
Remembering player names, timers and losing lives
I'm making a matchstick puzzle game for an IT course, and I'm a bit stuck with regards to the elements mentioned in the title. The game is a fixed grid, with buttons that use matchstick icons that the player clicks and drags to make a specific shape. I need to implement a timer which counts down fro...
- Mon May 02, 2016 11:48 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: "If intersect, reset the loc of me"
- Replies: 2
- Views: 2444
Re: "If intersect, reset the loc of me"
*I worked it out, it's cool!
I changed the "on mouseUp" section to:
I changed the "on mouseUp" section to:
Code: Select all
on mouseUp
if intersect(button "Match U1", button "Match U2") then
set the loc of me to sPos
end if
- Mon May 02, 2016 11:43 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: "If intersect, reset the loc of me"
- Replies: 2
- Views: 2444
"If intersect, reset the loc of me"
I am making a matchstick puzzle game which has several buttons with matchstick images that rotate and change image as they snap to a grid using "if intersect(me, grid line x) then set the loc of me to the loc of grid line x" and similar if's for changing image and dimensions of the buttons. What I n...
- Mon May 02, 2016 12:59 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Play a GIF/ Image Sequence
- Replies: 1
- Views: 2302
Play a GIF/ Image Sequence
I have a really simple matchstick puzzle game that, when the user submits a correct answer, needs to got an animated "correct" screen. I made an image sequence/ gif in After Effects that I would like to use in LiveCode. It is just some red/ white text on a grey background that is animated a little, ...
- Mon Apr 11, 2016 10:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: "Proceed if requirements are fulfilled"
- Replies: 2
- Views: 2323
"Proceed if requirements are fulfilled"
I am making a puzzle game, and I need to make a "submit" button that checks if the player's solution is correct. Basically, it's a "move two match sticks to make 4 squares the same size" level, and I have a layout of matches that snap to a grid. I need to make a button that will "go to the 'correct ...
- Mon Apr 11, 2016 11:47 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Snapping objects/ buttons to locations
- Replies: 2
- Views: 2044
Re: Snapping objects/ buttons to locations
Thanks, I managed to work something out.
This works perfectly for my needs, the only thing now is working out how to make the matches rotate to align with the grid.
Code: Select all
on mouseUp
if intersect(button "Match U1", graphic "grid v1")then
set the loc of me to loc of graphic "grid v1"
- Sun Apr 10, 2016 6:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Snapping objects/ buttons to locations
- Replies: 2
- Views: 2044
Snapping objects/ buttons to locations
So my IT course requires that we design and create a simple game. I decided to make a mini Professor Layton type of puzzle game. The first puzzle is one of the "rearrange the matches to make a different shape" ones, and I'm having some problems. I have a set up with a bunch of buttons with an image ...