Grimmy's Recent Forum Activity

  • Hi, Im looking into the advanced random plugin to generate maps and I was wondering if there is somehow a way to make the values seamless so that it can be used the make seamless noise textures.

    Thanks

  • ..without using javascript.

    Thanks

    Tagged:

  • I have created a tilemap whcih is seamless but I want this to repeat when the players nears the edge.

    How can I clone the existing tilemap with all the same tiles etc for this purpose?

    Obviously I can create a new instance of the tilemap, but this new instance will not have the tile data.

    I can see that its probably possibly using TilesJSON but Im not sure how Im supposed to store the Tilemap JSON data exactly.

    Thanks

    Tagged:

  • I think the way to do this is to copy TWO strips of tiles top to bottom and left to right and then fill the centre. I will let you know how it goes..

  • Thanks, but I honestly dont understand what you are saying. Anyway my idea is that I do the following:

    • I make a tile map and autobrush the top and left few rows/columns
    • I copy the left most column tiles to the right side and the top row to the bottom.
    • At this point I have a seamless tilemap but with an empty center.

    When I try to auto brush the center tiles, the auto brush simply overwrites the border tiles even though I am not performing an any action on these tiles. Is the a way for the autobrush NOT to change tiles that already exist?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lets say my map gets created procedurally using advanced random and setting the tiles with the tilemap brush (eg set tile with brush) meaning that everything within the map area looks nice and connected.

    However at the edges of the map area (lets say it 512 by 512 tiles for arguments sake) I want them to loop seamlessly with the opposite side so I can effectively infinitely loop around the map if my character continues to move in any direction.

    How would I do this part?

    Tagged:

  • I have my css file already loaded up but I want to replace some old class name with a new name. Is that possible?

    Maybe something like this but I dont know how to access the css text itself..

    innerHTML.replace(".someClass",".newClass")
    

    ;

    Cheers

    Tagged:

  • Im actually using an external tool to visually create the css and html. Its perfect for complex html interfaces all but for this little issue that it uses a body tag.

    In an attempt to fix the issue Im trying to automatically rename the tag in C3 at runtime. I can do this fine for the html using the 'set html content' action but there doesn't seem to be a way to edit the .css file via script.

    Is there some javascript that can replace the css class 'body' with a class 'div'?

    Cheers

  • On export my html reads:

    <body class="body-1">
    

    and the style is...

    body.body-1 {
     position: static;
     display: block;
    ..etc
    }
    

    But if I change these to the following it works fine.

    <div class="body-1">
    

    and the style to:

    div.body-1 {
     position: static;
     display: block;
    ..etc
    }
    

    Can anyone explain why and is there a better way to get around this rather than having to change the body tags to div tags every time I export? Thanks

  • I have a html element with lots of sub containers and classes. When I run it in C3 everything works fine apart from the bottom most (parent) container does not display. In my case this should display just a bright green background with a 20 pixel border.

    All of the child classes display perfectly (buttons, text etc) but for for some reason the background container is nowhere to be seen.

    When I run it as a html preview in the browser the background is visible but when I run via construct 3 it is not visible.

    I tried using a wrapper class around everything as described in the docs but this had no effect. Does anyone know what could be going on?

    Thanks

    Tagged:

  • I have a HTMLElement with lots of things going on inside it. One of those things is a range slider with an id of 'slider-1'.

    I want to change a value (some variable) in the event sheet when this slider has been changed. I can see there is a htmlElement onClicked event for buttons which works great, but I can't find anything for a slider.

    How would I do this?

    I tried the following javascript snippet. It does nothing but I have a feeling I might be on the right track ...

    var slider = document.getElementById("slider-1");
    var textElement = document.getElementById("val-1");//a text element to display the current value
    
    slider.addEventListener("input", function() {
     
    	var sliderValue = this.value;
     textElement.textContent = sliderValue;
     
    });
    

    Thanks

    Tagged:

  • Im trying some advanced html tricks but Im getting this error when I run my game due to one of my html elements has the following section of script was part of its html body:

    <script src="jquery-3.7.1.min.js"></script> <script src="jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#Tabs1").tabs( { show: false, hide: false, event: 'click', collapsible: false }); });

    The jquery source files are in the Files directory but I also tried them in scripts but I still get the same error in the console.

    Any ideas? Maybe Jquery isn't supported?

    Im actually trying to create a tabbed interface but when I bring it across all the styling is lost.

    Thanks

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