locked
Can I upload my own graphics to use as actors or scenes? <eom>

Answers

  • I found some help page somewhere describing just how to do it, but unfurtunately I can't find it now. But I used the trick in a project of my own.

    First, in the "Game" area (click the gamepad at the upper left-hand panel), there is a column for "Files", where you can add a file from either your own computer's hard drive, or from somewhere on the web. Use it to add the custom graphics you need.

    To apply that image to an actor, start out by putting in one of the standard actors, then edit that actor. Click the "Appearance" button, and in the not-yet-finished editing tool, select "Switch to XAML" -- this gives you a window with lots of strange computer-babble...

    Leave the first and the last line unchaged, but replace all and any lines in between the first and last line with this one:

    Code Snippet
    <Image Source="$base$/your_own_image.png" Canvas.Left="-16" Canvas.Top="-15" Width="100" Height="100"/>

    Notice the highlighted sections in the code snippet above: Here you need to insert the file name of the image you've added to the game, and set it's height and width...

     

    Hope it helps you as much as it helped a certain "Monster Dude" in my game attain some serious flatulence...!
    Monday, May 05, 2008 10:12 PM

All replies

  • It looks like you can if you convert them to xaml first...
    Monday, May 05, 2008 6:21 AM
  • I found some help page somewhere describing just how to do it, but unfurtunately I can't find it now. But I used the trick in a project of my own.

    First, in the "Game" area (click the gamepad at the upper left-hand panel), there is a column for "Files", where you can add a file from either your own computer's hard drive, or from somewhere on the web. Use it to add the custom graphics you need.

    To apply that image to an actor, start out by putting in one of the standard actors, then edit that actor. Click the "Appearance" button, and in the not-yet-finished editing tool, select "Switch to XAML" -- this gives you a window with lots of strange computer-babble...

    Leave the first and the last line unchaged, but replace all and any lines in between the first and last line with this one:

    Code Snippet
    <Image Source="$base$/your_own_image.png" Canvas.Left="-16" Canvas.Top="-15" Width="100" Height="100"/>

    Notice the highlighted sections in the code snippet above: Here you need to insert the file name of the image you've added to the game, and set it's height and width...

     

    Hope it helps you as much as it helped a certain "Monster Dude" in my game attain some serious flatulence...!
    Monday, May 05, 2008 10:12 PM
  • Just to add to RasterIRQ's comments, here are some links to the help - both for editing the XAML images (this allows you to have nice scaleable vector art) and for pasting in your own static images:

    http://www.popflywiki.com/How%20do%20I%20create%20my%20own%20actor.ashx
    http://popflywiki.com/GameCreatorEditingAppearance.ashx
    http://popflywiki.com/GameCreatorUsingUploadedFiles.ashx

    A neat tool for changing regular bitmap images into vector art is Vector Magic at http://vectormagic.com/


    Wednesday, May 07, 2008 6:33 PM