turp182's Forum Posts

  • 8 posts
  • I figured it out.

    Layer 0 - Forest:

    • Full layout tiled background.

    Layer 1 - Grass (playing area)

    • PNG image with solid white for the playing area (where the grass will be) and transparent where the forest should be visible.
    • Layout Property - Force Own Texture = Yes
    • Tiled Background (full layout) property - Blend Mode = Source Atop

    Layer 2 - Same as Layer 1

    Layer 3 - Just fixed sprites.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • I'm working with large layouts (8000,4000 and larger) and would like, for the sake of memory and performance, to use layers of Tiled Backgrounds to provide a basic rich background upon which to add a layer of fixed decorative sprites.

    Is there a pattern of layers, images with transparency (to define the area of the tiled background for a given layer), and tiled backgrounds (and blending mode) that can do this?

    For example:

    Layer 0 - Trees (the forest, 100% layer coverage)

    Layer 1 - Grass, the playing area, driven by a PNG with transparency

    Layer 2 - Water, a river (which should also block the characters), again, a PNG with transparency

    Layer 3 - Fixed sprites to decorate

    Thanks,

    Jason

  • Thanks zenox98, there's a reason I put this in the beginner's forum, I'm still trying to figure everything out. I had checked the image editor's options, but it seems like I missed the collision polygon option.

    That's a much better solution than an additional solid black invisible sprite (sized equally to what it is meant to handle events for) at the bottom of the layer for every button...

  • This morning when the site was down (due to a transaction log being full) it was exposing details about your site in the custom errors. These should generally (always in my opinion) be turned off for publicly facing sites.

    Here's how to do this. Your web.config system.web node should contain the following:

    <system.web>

    <customErrors mode="RemoteOnly">

    </system.web>

    It removed the URL I included with some additional things to consider, I think this should work:

    text: weblogs.asp.net/dotnetstories/five-common-mistakes-in-the-web-config-file

    This page lists some other issues related to the web.config file:I've attached the two different errors I received, which expose:

    1. You use IIS

    2. The version of the .Net framework (bottom of Error2)

    3. You use SQL Server

    4. Some details about your SQL Server configuration

    I'm not sure if phpBB would reflect this change in terms of what it exposes, that would require further testing.

    Just letting you know.

    Thanks,

    Jason

  • Case closed.

    All right, I figured out a way to get it working. I created a solid black rectangle image sprite the same size as the other images. I put it on the bottom (so the original image, highlight, and the black rectangle are all stacked at the same location and ordered correctly), made it invisible, and then set the event to trigger when this new sprite was hovered over.

    Seems like a bug to me or something, like the black color is what is letting the hover event trigger.

    Working CAPX attached.

  • OK, I boiled down the issue to the smallest CAPX I could. There are just two images and one event (displays the 2nd image, sets fade settings, starts fade).

    Having the images stacked doesn't change anything.

    I want the 2nd image to fade as soon as the rectangle on the first image is hovered over (with the tip of the mouse as the reference, I'm able to get the entire mouse pointer on the image without the event triggering). But, it only works when I hover over the words.

    My mouse is just sitting over the edge of the image here (2nd image doesn't fade in):

    [attachment=2:25yqziiz][/attachment:25yqziiz]

    But when I go over the letters, the 2nd image fades in:

    [attachment=1:25yqziiz][/attachment:25yqziiz]

    The first image has no transparency (doesn't seem to have an effect, the transparent version had the same problem).

    Anyway, the new CAPX is barebones (2 images, one event with 4 steps, I've tried reordering the event conditions as well as the steps).

    Any ideas? This seems extremely simple (but is proving considerably frustrating).

  • Thanks for the very fast reply. The CAPX you included still doesn't do what I'm looking for.

    I want the highlight image (Load_Highlight for example) to fade in when the base (just Load for the example) as SOON as the grey bounding box of the base is entered (just generated Clouds in Photoshop).

    I only see this working for the Load button, the other three fade in the highlight only when the mouse is on the text itself (for me the highlight even fades out when I position the mouse in the upper open area of the N in New, as well as some other obviously "hovering over" areas where there isn't black letter pixels).

  • I'm having problems setting up what I believe should be pretty simple Mouse Hover events. I removed the background image to make the CAPX fit size requirements.

    Goal:

    * 4 option PNG based menu, each having a semi-transparent block around the text.

    * On Mouse Hover for each menu item, fade in a highlighted version with a transparent background (the highlight will be on top of the base image, see the Load button for an example that is working).

    * On Not (X) Mouse Hover, fade out previously highlighted item.

    Result:

    * Only 1 button (Load) fades in when the semi-transparent Sprite border is crossed.

    * All other buttons fade in when the text itself is reached (you can move around the edges of the images to no effect, slide the mouse down the buttons' front edges, only Load lights up).

    * It seems like it's only picking up the non-transparent text and not the semi-transparent bounding box, but the Load button works as I expected (its events are at the top of the Event Sheet).

    Sprite Source:

    * All button PNG files (base and highlight) were created from the same template in Photoshop (2 layers, I turn off the text Style to create the base versions, hide the semi-transparent background for the highlights)

    Tested In:

    * Firefox (36.0.1)

    * Internet Explorer (11.0.9600.XXX)

    Construct 2 Version:

    * Release 195 (64 bit) - Unlicensed at this point (still determining viability)

    For testing I moved the highlight versions off of the base versions where it wasn't working, removing any overlap, to ensure that they weren't capturing the Mouse Hover.

    Can Mouse Hover be checked this much in a single event page (it would surprise me if that were the case)? Am I ordering things incorrectly?

    Any insight would be appreciated.

    Thanks,

    Jason

  • 8 posts