Search found 35 matches

by ferhan24badshah
Sat Aug 01, 2015 10:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Test on Physical Device
Replies: 1
Views: 2079

Test on Physical Device

In order to test on my app on my Android device, do I need to download the java sdk and android sdk? Or is that only for virtual device.
by ferhan24badshah
Wed Jul 29, 2015 8:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animation Control
Replies: 3
Views: 2774

Re: Animation Control

That works well (and I should probably just leave it at that, but just for good measure as this may translate into some extra learning...) The move command on its own is blocking, and so the enable statement is executed only after the move has finished, which is why you can do that in that button s...
by ferhan24badshah
Tue Jun 16, 2015 12:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Random Control
Replies: 1
Views: 1880

Random Control

I want to randomly put either 1 or 2 in a variable x

I did this by..

put random(2) into x

How do I control the random selection in a way where neither 1 or 2 is selected more than 4 times. Thanks!
by ferhan24badshah
Tue Jun 16, 2015 12:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animation Control
Replies: 3
Views: 2774

Animation Control

Upon clicking on a button 1, button 2 jumps up and lands backs to its original spot in 10 ticks. For example on mouseUP ....move button 2 relative 0,-20 in 5 ticks ....wait 5 ticks ....move button 2 relative 0,20 in 5 ticks end mouseUP My question is how do I control the clicking of button 1 in a wa...
by ferhan24badshah
Fri May 02, 2014 11:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

Re: moving objects

Thanks for posting the script, it's easier for us that way and you'll get more replies too. The grouping idea is a good one. You should change the layermode of the blocks back to static and set the layermode of the group to dynamic now. You want only the highest layer to be buffered. Having each ob...
by ferhan24badshah
Tue Apr 29, 2014 7:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

Re: moving objects

Hi Ferhan, Once on a real device "set the left..." or "set the loc..." of multiple objects gets very slow. I believe you are going to have to think up another way to do this. In your demo for the motion you show, it could be just group the objects and "move" the group. I just tried your last stack ...
by ferhan24badshah
Tue Apr 29, 2014 1:25 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

Re: moving objects

Could you post just the relevant part of your script please? I rarely download whole stacks, they are too time-consuming to read and debug. Short handler excerpts are much better for me. Here is the relevant part of the code command moveObj ....if the hilite of button "check" is true then ............
by ferhan24badshah
Sun Apr 27, 2014 6:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

Re: moving objects

jacque wrote:It may be in your script then. Does the handler include any "wait" instructions?

Here is my code....It's really laggy and the bottom obstacles aren't moving at the same pace as the top obstacles.
by ferhan24badshah
Sat Apr 26, 2014 9:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

Re: moving objects

jacque wrote:This came up in another thread too. Besides setting acceleratedRendering, you also need to set the layerMode of each block to "dynamic".
Thanks for the response. I already had the layerMode of each block set to "dynamic".
by ferhan24badshah
Thu Apr 24, 2014 11:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: moving objects
Replies: 14
Views: 9912

moving objects

I have 3 blocks evenly spaced out on the card. I animated each of the blocks to move from right to left at the same speed, and if the right side of a block moves past the left side of the card, the left side of the block is placed past the right side of the card and it continues its motion towards t...
by ferhan24badshah
Sun Apr 20, 2014 8:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersect Command
Replies: 11
Views: 7246

Re: Intersect Command

Seems ok here. not_bird.zip But I guessed at the reset of you code. Simon Hey Simon, thanks for the help. My code is exactly like yours except I forgot to mention that my bird image accelerates down...as in set the top of image "bird" to the top of image "bird" + text of field "speed" and within th...
by ferhan24badshah
Sun Apr 20, 2014 8:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersect Command
Replies: 11
Views: 7246

Re: Intersect Command

....my bird image just moves through the brick How are you stopping the motion? Simon set the top of image "bird" to the top of image "bird" + 1 set the angle of image "bird" to angle of image "bird" - 1 .....if intersect( image "brick" , image "bird", "255") then ..........set the hilite of button...
by ferhan24badshah
Sun Apr 20, 2014 6:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersect Command
Replies: 11
Views: 7246

Re: Intersect Command

What Sefro said. I am sure he has identified your problem. To tell you a little more about what he meant, read about the "intersect" function in the dictionary. The "opaque" keyword is really just a synonym for an alpha channel of 255. Try an alpha channel of "0", which ignores the opacity of the i...
by ferhan24badshah
Sun Apr 20, 2014 6:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersect Command
Replies: 11
Views: 7246

Re: Intersect Command

Have you tried leaving out "opaque"? if intersect (image "brick", image "bird", "pixels") then answer "You Lose" end if Good lcuk! --sefro typing in "pixels" doesn't work but typing in "0" works. But I actually wanted "opaque pixels" or "255" because I don't want the intersection to pick up the tra...
by ferhan24badshah
Sun Apr 20, 2014 3:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Intersect Command
Replies: 11
Views: 7246

Intersect Command

The "opaque pixels" does not function for some reason? My codes looks like this if intersect (image "brick", image "bird", "opaque pixels" then answer "You Lose" end if Both of the images are PNG Files. The image "bird" is animated to fall down while spinning until it hits the ground which is image ...