Search found 57 matches

by ocean77
Tue Sep 01, 2020 8:50 pm
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

It worked brilliantly in Designer, no visible seam at all. But with the hand coded project it doesn't work properly. And I don't really understand what to do about it. That is strange. How did you make it loop in Designer? Using action events? My sincerest apologies. I went back and checked. I was ...
by ocean77
Sun Aug 30, 2020 11:16 pm
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

The code for you: @REQUIRE "oggvorbis" @REQUIRE "avcodec" @VIDEO 1, "Videos/RomBoot3-0.mp4" @MUSIC 1, "Melodias/TheCrackSong01.ogg" Function p_IntroVideo() ;Also you can jump to music start SeekMusic(1, 1000) ;Jump to 1000 miliseconds to avoid the silence start. PlayMusic(1, 1) ;1 to infinite times...
by ocean77
Thu Aug 27, 2020 10:59 pm
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

Thanks for taking the time to help out. I appreciate it. Your code works as far as getting it to loop. But the music restarts as soon as the video restarts. If I recall correctly there should be a way to set them to play asynchronously. Also, there is a frame of black background before the video res...
by ocean77
Tue Aug 25, 2020 11:11 am
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

Unfortunately removing that line makes no difference. It still plays once and freezes.
I only left the line in there because I was testing to see if it would work differently.
by ocean77
Mon Aug 24, 2020 11:01 pm
Forum: Showcase
Topic: Femme Fatale Free Mp3
Replies: 5
Views: 836

Re: Femme Fatale Free Mp3

Allanon wrote:
Mon Aug 24, 2020 11:30 am
Good job! I really liked your track :D
Thanks! :D
airsoftsoftwair wrote:
Mon Aug 24, 2020 3:09 pm
When I first read that title, I thought we have a spambot on the forum. Nice to see that this isn't the case :)
I'm sorry. Do you think I should change the title? It didn't occur to me.
by ocean77
Mon Aug 24, 2020 10:59 pm
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

Try this: Function p_ShowVideo() PlayVideo(1, #CENTER, #CENTER) SetInterval(1, p_CheckVideoIntro, 25) ;Checking if the video is playing currently. EndFunction Function p_CheckVideoIntro() playing=IsVideoPlaying(1) If playing=False CloseVideo(1) ;Close the video. ClearInterval(1) p_MainFunction() ;J...
by ocean77
Mon Aug 24, 2020 12:11 am
Forum: Showcase
Topic: Femme Fatale Free Mp3
Replies: 5
Views: 836

Femme Fatale Free Mp3

Made a small presentation in Designer to demo a track I'm releasing under a CC-BY License to anyone who has any use for it. This community is very helpful and nice, I want to give something back. It's not much, but if there's any interest there could be more. https://youtu.be/sSO7b_YyAzM The mp3 and...
by ocean77
Sat Aug 22, 2020 3:11 pm
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Re: Looping video

So, I tried to fix it myself, but with my lack of expertise I can't get it to work. @VERSION 8,0 @REQUIRE "avcodec", {Link = True} @DISPLAY{WIDTH = 960, HEIGHT = 540, MODE = "WINDOWED", TITLE = "Looping Video"} @VIDEO 1, "Seamless.mp4" r = 0 While r < 10 And IsVideoPlaying(1) = False ;OpenVideo(1, "...
by ocean77
Sat Aug 22, 2020 11:55 am
Forum: General programming
Topic: Looping video
Replies: 15
Views: 1691

Looping video

So, I'm trying to do some actual programming now, as apposed to just using the Designer. And I want a video to play continuously until the mouse is clicked.

There doesn't seem there is a flag option for looping a video, unless I've completely missed it.
So, how can this be achieved?
by ocean77
Mon Aug 17, 2020 11:23 pm
Forum: General questions
Topic: Trouble with switches
Replies: 6
Views: 1821

Re: Trouble with switches

airsoftsoftwair wrote:
Mon Aug 17, 2020 4:51 pm
Do you mean that you only want to use one object for the switch instead of two? That is possible by creating the switch as an animation object with the first frame being the off switch and the second frame the on switch... or vice versa.
Got it! Thank you!