Search found 254 matches

by Newbie4
Sun Oct 15, 2017 4:12 am
Forum: Creating Games
Topic: creat game" flappy birds"
Replies: 8
Views: 808

Re: creat game" flappy birds"

You are welcome to use the simple lessons here
https://sites.google.com/a/pgcps.org/li ... flappybird

which also adds more customization to it - a turbo mode, controls for speed, gravity, tracking high scores and adding palettes/subscripts for pop-up controls
by Newbie4
Mon Jun 05, 2017 1:38 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 1132

Re: A way to store a permanent number from a random number

It sounds like you already know something about programming. That is a good assignment. You can't just look up the code on the Internet. You have to figure it out yourself. You're in good shape. You have enough from these posts to be able to do the assignment now. It is good practice. Good luck. Usi...
by Newbie4
Sun Jun 04, 2017 10:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 1132

Re: A way to store a permanent number from a random number

Basic commands in LiveCode are not very different from other languages and the basic logic is usually the same. The problem most people have in coding is that they start writing the code too early, before they have completely figured out the logic. For some people, it is better to start small and si...
by Newbie4
Fri May 12, 2017 8:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lock objects from being dragged out of the screen
Replies: 33
Views: 3454

Re: lock objects from being dragged out of the screen

Yes, I do too but sometimes when teaching newbies, you have to step through the process in logical steps (as you help them think thru it) Some people can not make the jump to the better code in one step.
by Newbie4
Fri May 12, 2017 8:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lock objects from being dragged out of the screen
Replies: 33
Views: 3454

Re: lock objects from being dragged out of the screen

RATS, I tried to get there with a more universal solution before you did (Richmond). But I went back to edit it and while I was editing it, you uploaded your new stack. So your time stamp was earlier than mine. I like your idea of using variables for the right and bottom locations. It makes the code...
by Newbie4
Fri May 12, 2017 7:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: lock objects from being dragged out of the screen
Replies: 33
Views: 3454

Re: lock objects from being dragged out of the screen

...and if you want it to work for any size card, you can generalize the tests for right and bottom. (other than an 800x600 sized card in Richmond's example) give the card a name (e.g. "main") and modify the code to check for ... > the right of card "main" instead of just ... > 800 . and the ... > th...
by Newbie4
Tue Apr 11, 2017 9:10 pm
Forum: LiveCode Builder
Topic: Vertical labels on line graph widget possible?
Replies: 1
Views: 732

Vertical labels on line graph widget possible?

Is it possible to have vertical labels on the x-axis in the line graph widget? The labels on that axis are long and overlap to where they are unreadable. I tried making them a smaller font and cutting them off lengthwise but they were difficult to read. Is there a way to rotate them so the are sidew...
by Newbie4
Tue Apr 11, 2017 8:58 pm
Forum: LiveCode Builder
Topic: Unable to understand Java FFI example
Replies: 7
Views: 890

Unable to understand Java FFI example

I am trying to understand how to use the Java FF interface in LiveCode. The example of the battery percentage is confusing to me probably because I do not understand some of the steps and functions interfacing with the battery. Is there a simpler example that I can follow? I know Java well but am no...
by Newbie4
Wed Sep 14, 2016 4:52 am
Forum: Educational Outreach
Topic: PROJECT:EDU Guide, "Teaching Computer Science with LiveCode"
Replies: 6
Views: 1693

Re: PROJECT:EDU Guide, "Teaching Computer Science with LiveC

Why LiveCode - From an Educator's Viewpoint When I mention LiveCode I often get blank stares. They are thinking that it is a cutesy language like Scratch, Karel or Turtle Graphics. Sometimes they say "That's not a real language, is it?" or "We use Python/Java, a real language." LiveCode, a descende...
by Newbie4
Wed Jun 29, 2016 5:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stop-Start: animation along a path
Replies: 19
Views: 2016

Re: Stop-Start: animation along a path

Shouldn't

Code: Select all

put the pendingmessages into myMsg
be

Code: Select all

put the pendingmessages into myMsgs
by Newbie4
Wed Jun 29, 2016 1:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Error can't find handler
Replies: 8
Views: 757

Re: Error can't find handler

Sometimes there is an unprintable character at the beginning of a line. (especially if you cut and pasted the line). Try deleting and retyping that line.
by Newbie4
Wed Jun 29, 2016 1:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stop-Start: animation along a path
Replies: 19
Views: 2016

Re: Stop-Start: animation along a path

Here is the code I referred to: This is the "game loop" global thePoints,theFlag,theLineNum command movesun if theFlag then set the loc of btn "sun" to line theLineNum of thePoints add 1 to theLineNum if theLineNum > ( the number of lines of thePoints) then put 1 into theLineNum end if send movesun ...
by Newbie4
Wed Jun 29, 2016 1:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stop-Start: animation along a path
Replies: 19
Views: 2016

Re: Stop-Start: animation along a path

The move message: - executes only once - can not be interrupted and continued The way I would do it would be to create a "game loop" that moves the sun to the next point, then sends itself a message (to move again) in "x" millisecs. When it hits the last point, start again at the top. This will keep...
by Newbie4
Wed Jun 22, 2016 3:06 pm
Forum: Off-Topic
Topic: My point of view
Replies: 59
Views: 8459

Re: My point of view

The "Blender" route seems the logical end point for LiveCode. While the current directions do not seem to be working, they are missing another opportunity. It is hard to compete in the programming languages arena. Especially against companies like Apple (Swift), Google (Dart, Go) and many other new ...
by Newbie4
Wed Jun 22, 2016 12:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Control names should not be using numbers?
Replies: 17
Views: 1703

Re: Control names should not be using numbers?

As you add objects to the card, each is considered to be on its on plane with respect to the card and the topmost one with respect to the other objects. If you start with a new card and add 2 objects to it, the last one that you added is considered to be the topmost one. Even though they may be side...

Go to advanced search