Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - keilmillerjr

Pages: 1 ... 56 57 [58] 59 60 ... 78
856
Scripting / Re: Text styling questions
« on: October 11, 2017, 03:24:36 AM »
Got the colours working now. Thanks all for the advice.
Now searching for a decent replacement font that's all caps. If only I could get .toupper could work!

http://www.squirrel-lang.org/squirreldoc/reference/language/builtin_functions.html#string.toupper

string.toupper()
returns a uppercase copy of the string.

It works. Make sure you reasign string if you want to change it. Example: string = string.toupper();

857
Scripting / Re: Text styling questions
« on: October 10, 2017, 05:26:47 AM »
That wouldn't achieve the alignment I'm after - I want the two to flow together in one text object. Example below.

Yes. Same result in two objects.

Create object with "the simpsons plays 13".
Style it blue.
Create object with "the simpsons" and same positioning as previous object.
Style it green.

Let me know how it looks.

858
Scripting / Re: Text styling questions
« on: October 10, 2017, 03:38:35 AM »
Thanks for the responses.
So, it pretty much looks like I can't easily get the effect/layout I'm after and will have to compromise with text all the same colour and not uppercase.

Make them two different objects like I said. If your worried about positioning with different aspect ratios, you could always duplicate the object with complete text, change text to the second text, and change color. This would only work with justify left or right, not center. Hopefully overlaying the object doesn't show artifacts.

859
Scripting / Re: Continuous sliding image like as SNES Mini background
« on: October 09, 2017, 08:16:09 PM »
I am sure there is more than one way to do this.

My approach would be to use an app to take your image, animate it, and export it as a movie file. Photoshop can create animated gifs, but I think it can also export as quicktime movie. Move one object off the screen while having a duplicate layer replace the others position.

Make a movie or gif file is not the best way. I expect using a code. I can see "Mugen" system can do it. So, hope someone expert to write a module to do it.  :)   

I didn't say it was the best way. The amount of time it would take *myself* to have code/animation do this would be a lot. The same effect could be had in minutes by making a movie file. Might be quicker to code for some one really familiar with animations in attractmode. I assume you would need an object, duplicate it, and have both animating. When one finished it repositions and starts animating again.

860
Scripting / Re: Continuous sliding image like as SNES Mini background
« on: October 09, 2017, 07:31:11 PM »
I am sure there is more than one way to do this.

My approach would be to use an app to take your image, animate it, and export it as a movie file. Photoshop can create animated gifs, but I think it can also export as quicktime movie. Move one object off the screen while having a duplicate layer replace the others position.

861
Scripting / Re: Text styling questions
« on: October 09, 2017, 03:42:19 AM »
A string is "A string". You must separate your parts to style them differently.

details.toupper() is not a declaration. Assign the result to your details variable as such: details = details.toupper();

862
General / Re: Forum is back up (hopefully)
« on: October 07, 2017, 06:11:11 AM »
Yay!

863
Scripting / Re: Case Select sound issue
« on: September 26, 2017, 04:17:17 AM »
on that added note...a selection is technically the end of the system menu

so this should work    .EndLayout



function start_theme( ttype, var, ttime ) {
 switch ( ttype ) {
  case Transition..EndLayout:
              local sound = fe.add_sound("intro.mp3");
         sound.playing=true;
  break;
  }
 return false;
}
fe.add_transition_callback( "start_theme" );

Transition needs to return false, and return true if sound playing is complete.

864
Scripting / Re: Case Select sound issue
« on: September 25, 2017, 05:41:37 PM »
I’m exhausted, so only take a quick look at the menu. Keep in mind that I haven’t used menus. Y’all know I have my personal machine only running one system.

I am not sure how „goto game menu“ is selected as there is a break in your switch case, and maybe default holds that logic? Regardless, you need to add a tick to constantly check if sound has stopped playing, or a certain time (length of sound) has passed. Once this is true, then proceed to „goto game menu“.

Hopefully that is enough to get you started. If you still need help, walk me through and I can look at it tomorrow night.

865
General / Re: BOOT STRAIGHT INTO GAME ? AUTO LOAD A GAME?
« on: September 24, 2017, 07:30:53 PM »
Easiest way would probably be to create an autohotkey to run mame with Params for Rom and add a esc hotkey to send key for mame to exit and script then open attractmode and exit the script.

867
Scripting / Re: custom loading screen for every game.
« on: September 17, 2017, 04:35:52 PM »
Looks great! We can incorporate this feature to the plugin as optional and fade after loading screen is shown for a specific time.?

868
General / Re: Hide Command Prompt Dialogue When Launching & Exiting Games?
« on: September 17, 2017, 04:00:34 AM »
Almost done with the coding, and its fully functional at this point. Will spruce up code, add docs, and push to github and bintray for download. App will hide the console, of course. But it also accepts command line params. Those params will be passed on to attract. The only contingency with this app is that it must be placed in the same folder as attract.exe, and attract.exe must not be renamed to anything else. Otherwise, it works perfectly! You can run launch.exe during production (play time), and run attract.exe directly during development for your command line.

869
General / Re: Hide Command Prompt Dialogue When Launching & Exiting Games?
« on: September 16, 2017, 08:24:18 PM »
Mission Accomplished. It works. Console is hidden from start while the smfl window it creates remains as it should. Will refine code and release soon.

870
General / Re: Hide Command Prompt Dialogue When Launching & Exiting Games?
« on: September 13, 2017, 08:03:04 AM »
What if I were to create an autohotkey script to hide the terminal window? Think it would work before it's even shown?

Pages: 1 ... 56 57 [58] 59 60 ... 78