Search found 146 matches

by jiml
Fri May 11, 2018 9:15 pm
Forum: Creating Games
Topic: Scrolling Backgrounds
Replies: 7
Views: 171

Re: Scrolling Backgrounds

I usually place two images side-by-side in a group whose width is smaller than the combined width of the images. Then I just set the hscroll of the group to simulate moving across the landscape. If the imagery at right edge of the right image matches up with the imagery of the left side of the left ...
by jiml
Tue Jan 09, 2018 5:36 pm
Forum: Off-Topic
Topic: Klaus is close to 8000 posts
Replies: 25
Views: 4819

Re: Klaus is close to 8000 posts

Klaus,

Danke vielmals!

Jim Lambert
by jiml
Sat Jan 06, 2018 6:15 pm
Forum: Rich Media
Topic: Fade up on a video clip
Replies: 5
Views: 483

Re: Fade up on a video clip

Another simpler approach to the fireplace effect. No movie at all. go stack url "http://netrin.on-rev.com/animateimage/fireplace_jim.livecode" fadeIn 3000 - fades in in roughly 3 seconds fadeOut 2000 - fades out in roughly 2 seconds restore - gets rid of the backdrop The fades could be triggered by ...
by jiml
Tue Dec 19, 2017 8:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: function returns string with quotes
Replies: 13
Views: 896

Re: function returns string with quotes

In addition to NAME and NUMBER Livecode objects are also assigned an ID, which is yet another way to reference them.

Jim Lambert
by jiml
Tue Dec 19, 2017 6:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Custom URL scheme should be Custom URI scheme?
Replies: 12
Views: 545

Re: Custom URL scheme should be Custom URI scheme?

To bolster what Richard wrote earlier, here is an excerpt from Apple's App Programming Guide for iOS : Inter-App Communication Apps communicate only indirectly with other apps on a device. You can use AirDrop to share files and data with other apps. You can also define a custom URL scheme so that ap...
by jiml
Tue Dec 19, 2017 6:52 am
Forum: Creating Games
Topic: Showing different images when moving?
Replies: 43
Views: 2273

Re: Showing different images when moving?

Bogs, That's very cool. You've discovered a second way to speed up the animation. Each time you click START you add additional animateMe's to pendingmessages. Neat! But I think that speed won't survive leaving the card. The leisurely 120 speed will be restored on return to the card and INITing, sinc...
by jiml
Tue Dec 19, 2017 1:42 am
Forum: Creating Games
Topic: Showing different images when moving?
Replies: 43
Views: 2273

Re: Showing different images when moving?

Bogs & Richard,

Thanks :D

JimL
by jiml
Mon Dec 18, 2017 11:56 pm
Forum: Creating Games
Topic: Showing different images when moving?
Replies: 43
Views: 2273

Re: Showing different images when moving?

Hi All,

This thread has led me to create a behavior and example stack for making cel animation easy in LC.
Here it is:
http://livecodeshare.runrev.com/stack/857/Cel-Animation

Enjoy!

Jim Lambert
by jiml
Thu Dec 14, 2017 1:08 am
Forum: Talking LiveCode
Topic: Filter Script & Patterns & Regex
Replies: 19
Views: 1055

Re: Filter Script & Patterns & Regex

put the number of lines of fld 1 would correctly return 4 in that example, even though line 2 is hidden. put line 2 of fld 1 would return: this is line 2 You are correct that you would need to use a repeat loop and the IF statement you provided in order to count the hidden lines. It might be nice i...
by jiml
Wed Dec 13, 2017 9:06 pm
Forum: Rich Media
Topic: Fade up on a video clip
Replies: 5
Views: 483

Re: Fade up on a video clip

Hutch,

Glad Richmond's suggestion worked. Very clever using a second stack.

Attached is a refinement of your original approach.
It uses a couple of tricks to overcome the video choppiness you saw.
I've only tried this on a Mac; your mileage may differ.
fireplace fade.livecode.zip
(1.59 KiB) Downloaded 20 times
Jim Lambert
by jiml
Wed Dec 13, 2017 7:26 pm
Forum: Talking LiveCode
Topic: Filter Script & Patterns & Regex
Replies: 19
Views: 1055

Re: Filter Script & Patterns & Regex

Clarence, An alternative to FILTER for displaying only certain lines in a field is the HIDDEN property. set itemdel to TAB lock screen repeat with x = 1 to the number of lines of fld "myFld" if item 3 of line x of fld "myFld" is NOT "myValue" then set the HIDDEN of line x of fld "myFld" to true end ...
by jiml
Thu Dec 07, 2017 12:58 am
Forum: Creating Games
Topic: Showing different images when moving?
Replies: 43
Views: 2273

Re: Showing different images when moving?

Hi Chrono,

No there is no flickering or sticking here on any version of LC on a Mac.
Perhaps your issues are not LC but OS related.

JimL
by jiml
Mon Nov 13, 2017 11:05 pm
Forum: Talking LiveCode
Topic: Hide or obfuscate mp4 videos
Replies: 10
Views: 569

Re: Hide or obfuscate mp4 videos

Well could you simply hide/show the folder containing the movies? This works on macOS: constant hidName = "/resources/.movies", visName = "/resources/movies" on showMovieFolder how if how = true then rename folder hidName to visName else rename folder visName to hidName end if end showMovieFolder Se...
by jiml
Sat Nov 11, 2017 4:46 pm
Forum: Talking LiveCode
Topic: [ANN] SSNotification
Replies: 3
Views: 307

Re: [ANN] SSNotification

shaosean,
Thank you for SSNotification. Very handy!
Jim Lambert
by jiml
Sun Nov 05, 2017 9:40 pm
Forum: Creating Games
Topic: Showing different images when moving?
Replies: 43
Views: 2273

Re: Showing different images when moving?

Thanks.

Here's a version that shows the same technique but using a group of animated GIFs.

In msg box:

Code: Select all

go url "http://netrin.on-rev.com/animateimage/roach.livecode"
(Too large to attach here.)

Jim Lambert

Go to advanced search