Grimmy's Recent Forum Activity

  • I would like to get values 0 (black) to 1 (white) at specific x,y pixel positions from an image. Is that possible?

    I know that the advanced random generates various noise types but I want to do the same kind of things but with pre designed greyscale values so I have more control.

    Cheers

    Tagged:

  • Hi, there are currently 2 types of autobrush (Auto16 and Auto47).

    I am creating a top down map and Auto16 doesnt seem to satisfy a lot of criteria. The Auto47 ruleset however seems to be completely undocumented and it has three different shades of grey indicating there should be three terrain types.

    1.Is there an example of a tileset using the Auto47 anywhere as I can't seem to understand the requirements. The tilesets on the store all seem to be just a bunch of pngs with no actual c3 brush setup.

    EDIT: Oh wait I see it. This is the default one that gets loaded as the water part on the right when you create a tilemap object.

    2.Is the Auto47 brush detailed enough for most criteria...for example could I have trees in a forest biome meet with trees in a desert biome etc. I guess a couple of Auto47 brushes would help me understand this better.

    3. I want to eventually have code use the brushes to create the maps at runtime so using something like tiled is not an option.

    Any guidance welcome. Thanks

    Tagged:

  • Hi, I need to build a detailed UI interface with menu menu, sub menus, layouts etc all which is fed by data (JSON). Think something like Civilization of Crusader Kings 3.

    I'm thinking of building in all in HTML for Construct 3.

    Are there external visual html tools that could possibly help with this?

    Anyone got any tips or advice?

    Thanks

  • Also worth noting, the screen sharing problem started happening in a live app with no updates from me, so I suppose this is cause from a new Chrome or Android update? Anyone know?

  • Hi, I have a strange issue that just started happening. My app grabs a screenshot and shares it. This worked fine up until one of the latest releases of C3 or maybe a Chrome update but now on ANdroid device I get an error.

    When doing a AJAX request on Android device I now get the following error:

    cordova.js:314 Uncaught TypeError: entry.file is not a function

    On PC the taking of screenshot and downloading it works fine but on PC now I started getting the error when sharing:

    [Share plugin] Share failed: DOMException: Failed to execute 'share' on 'Navigator': Must be handling a user gesture to perform a share request.

    Which is odd because it always worked before.

    I also tried putting everything into the onclick event but the Share plugin still complains unless it's the very first line of the event- this means its actually impossible to share a screenshot anymore.

    Any ideas?

    Thanks

  • Not of interest to many but I made an app for a small town in Argentina..it's a bit like yellow pages or something similar. It's almost completely HTML and js and makes use of construct engine where required. Here it is: https://play.google.com/store/apps/details?id=com.ruleoffun.todopergamino

    Cheers

    Tagged:

  • It seems that HTML elements are drawn in front of the canvas and so when I do a canvas snapshot the HTML elements are not taken into account.

    Is there some way of doing this?

  • When I try this on a different device the issue does not happen?

    How can I make sure the html element is always at 0,0 on all devices?

    I can manually shift the html element in code but as the offset is different on different devices I'll need to check the value of the 'left' attribute in the root div.(Which is above my own html) But how would I do that??

  • The WAAAY better way to do this is using CSS (logic) alone:

    /* if no image source set display to none!! */
    .image[src=''] {
    display:none;;
    visibility:hidden;
     /* elseif */
    }
    
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi. I am adding the following style via Javascript to individual html elements. (In my case when an image has no content I want to set the display to 'none' so the 'not loaded' graphic cant be seen and the layout is arranged accordingly)

    myImageElement.style.display = 'none';
    

    This works fine on Preview within C3 resulting in...

    <img class="image" src="" style="display: none;">
    

    ..but when I export to ANdroid and inspect via the remote inspector the elements don't get modified and simply read:

    <img class="image" src="">
    

    Any Ideas??

    Cheers

    Tagged:

  • I have a html element which covers the screen. It has a wrapper css as in the example:

    position: absolute;
    	left: 0;
    	top: 0;
    	right: 0px;
    	bottom: 0;
    

    However, when I run on android the html element is either offset to the left or clips out at the right of the device screen.

    I have the top bar turned off on android export but I see this issue even with it switched on.

    Everything looks perfect in preview. Its fully responsive when I manually adjust the widow size in the preview.

    Any ideas how to get the preview to match the export?

    I have attached an image so you can see the differences between the preview and device build.Note the buttons at the bottom and the whole html element is offset about 10 pixels to the left..

    EDIT: When doing a remote debug I can see there is a left:-5 offset in one of the construct divs (not mine) See image.

    Thanks

    Tagged:

  • I can style the list object itself using a class or id and I can also access the option elements within the list to style them. However, when I do something in CSS like

    #my_dropdown option{
    
    background-color: #FBCB2C;
    margin: 50px 0;
    
    }
    

    The background colour of each list item is affected but the margin parameter has no effect. I notice that the list is of class 'select' but whatever I try I cant seem to change the distance between list items.

    Basically I want the list item to be easier to use for mobile users and the current spacing between items seems too narrow.

    Cheers

    Tagged:

Grimmy's avatar

Grimmy

Member since 20 Nov, 2012

Twitter
Grimmy has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies