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.


Topics - asahendrix

Pages: [1]
1
Scripting / Help! Faded Blur Gradient Effect
« on: December 20, 2019, 02:37:09 PM »
Greetings fellow artists,

    I have been pulling my hair out on photoshop trying to create a single gradient blur layer that I could then use to place over any other image in an attract mode layout.

I need the layer to have a faded opacity as you can see below. I know blurring can be done on AM, I just don't know how or even how to fade it for that matter. Could someone pretty please help me with this? I'd be forever indebted to you!

Here is an example of what I'm looking for. The credit for this image goes to lomax2k at RetroPie

https://retropie.org.uk/forum/topic/1892/my-idea-for-a-theme/2

2
Themes / MatteCleanHD (WIP) Preview
« on: December 15, 2019, 01:53:12 AM »
Hello all!

I've been hopelessly working on a Display layout. I have a ways to go before I cross the finish line and I've poured hours into Photoshop. But I thought I'd show you all where I'm at!

I'm really not proficient in code - I mostly use burrowed code from others. Below, I have some issues that I was hoping someone(s) could help me with while I try to get this layout off of the ground.

When using layout for multiple systems, whatever background I change it to changes the background for all the systems. How do I fix this?

I want to have multiple animations, but I can't figure out how to get the animations to work with anything but the flyer. This is because I used dmmarti's animation code for his/her WIP layout. I literally went through layouts until I found one with the animation closest to what I was looking for.
- I want to have animation for the system info on the right.
- I would like to have the boxart come in from the bottom of the screen
- I am not able to apply preserve_aspect_ratio to even the flyer animations. I would like this for everything on here.

Any one want to lend a hand?


3
Scripting / Video Shuffle Instead of Static
« on: July 18, 2019, 10:30:06 PM »
Greetings all,

      I’m trying to substitute the static.mp4 for old news footage. I’ve switched out the files in the layout.nut but the problem is, the news audio continues to play even when I navigate to a game that has a snap. Do any of you know code that will mute the news video once a game with a snap is highlighted? I’m guessing there is an “if” statement that belong somewhere.

Additionally, I’d like to have a video shuffle - so that if a snap is not present, a random video will play. I already have code for doing this with songs - I just need code for video.

As always, thank you all for your help! I’m working on something pretty spectacular 🙂

4
General / Raspberry Pi 4 Support
« on: June 25, 2019, 09:50:55 AM »
As some of you know, the Raspberry Pi 4 was released yesterday.

Maybe this is a stupid question but; are we going to need an Attract Mode update in order to run AM on the Pi 4? If so, what is the time table of an update release?

Thanks so much!

5
General / Wheel Art in Vertical List
« on: June 22, 2019, 11:27:30 PM »
Hey guys - I've been working on a new theme and I can't figure out how to make a straight up and down vertical game list. I don't want a conveyor or a "wheel" per se, but I do want WHEEL ART on a standard vertical list.

I'm on a Pi 3B+. Here's the code I currently have:

// Wheel

fe.load_module("conveyor");

local pi = 3.14;
local wheels = config["wheels"].tointeger() + 3;

class WheelEntry extends ConveyorSlot {
   constructor() {
      local w = fe.add_artwork("wheel");
      w.preserve_aspect_ratio = true;

      base.constructor(w);
   }

   function on_progress(progress, var) {
      /* Center alignment */
      local pos = abs(ceil(progress * wheels));
      local size, alpha;
      local pprogress = 1 - (pos.tofloat()/wheels - progress) * wheels;

      print(pos + " " + progress + " " + pprogress + "\n");
      size = 0.14;
      alpha = 155;

      if (pos == wheels/2 + 1) {
         size = 0.2 - pprogress * 0.06;
         alpha = 255 - pprogress * 100;
      } else if (pos == wheels/2) {
         size = 0.14 + pprogress * 0.06;
         alpha = 155 + pprogress * 100;
      }

      /* Realign between -2pi/3 and -4pi/3 */
      local angle = (progress * -2*pi/3) + 4*pi/3;

      m_obj.x = (1.4 - size /2)*flw + flh * cos(angle);
      m_obj.y = (0.5 - size /2)*flh + flh * sin(angle);

      m_obj.width = size*flw;
      m_obj.height = size*flh;

      m_obj.alpha = alpha;

      local rotation = (progress * -120) + 60;
      m_obj.rotation = rotation;
   }
};

local conveyor_bg = fe.add_text("", flw*0.73, flh*0, flw*0.28, flh*1);
conveyor_bg.set_bg_rgb(0,0,0);
conveyor_bg.bg_alpha = 220;

local slots = [];
for (local i=0; i<wheels; i++)
   slots.push(WheelEntry());

local conveyor = Conveyor();
conveyor.set_slots(slots);
conveyor.transition_ms = config["spin_ms"].tointeger();



Can anyone help me out?


Pages: [1]