Author Topic: Surfaces. How do they work?!  (Read 5228 times)

Bgoulette

  • Sr. Member
  • ****
  • Posts: 116
  • I wrote a book.
    • View Profile
    • BlakeGoulette.com
Surfaces. How do they work?!
« on: August 18, 2015, 12:27:14 PM »
Hi all,

I have a bunch of junk I'm trying to cram into a surface, like this:

Code: [Select]
local surfSnap=fe.add_surface(280, 140);
surfSnap.set_pos(0, 60);

local snap_bg=surfSnap.add_image("snap_bg.png", 0, 0, 280, 140);
local snap_img=surfSnap.add_artwork("snap", 0, 0, 280, 140);

If I don't use surfaces, I can stack 'em up and they display as expected, but I'm trying to lay the groundwork for some motion, and surfaces appear to be the way to go. Am I missing something? I tried setting the surface object's alpha, visible, set_rgb, but nothing changed what I was seeing. I'd appreciate any insight! Thanks!

Bgoulette

  • Sr. Member
  • ****
  • Posts: 116
  • I wrote a book.
    • View Profile
    • BlakeGoulette.com
Re: Surfaces. How do they work?!
« Reply #1 on: August 18, 2015, 12:29:46 PM »
I'm an idiot. I added my original surface below the overall background plate. So it's there, just under everything. Ugh!