Grimmy's Forum Posts

  • I can use rotateToward to rotate the sprite to the position but I want it to ease in and ease out as I move the mouse. What's the recommended way?

    Cheers

  • Hi, I used the ProUI plugin on a previous game project. A great plugin but which sadly is now seemingly a dead plugin. However, with the rise of the C3 html element plugin and the scene graph, things have become slightly easier than before to create a UI . But for me I am still confused about best practices for UI.

    I have made games/apps with both pure html (for a yellow pages type app) and with the ProUI library in construct 3 (for a game), so I have experience in both, but I'm still not sure if the recommended approach for complex game UI would be raw C3 sprites or pure html...or a mix of the two? When I mean complex UI I mean something like an RPG with crafting/inventory screens etc.

    Personally I love the rigidity and organization of html but I find it difficult to be visual and creative when developing for it. Maybe there are some recommended tools that could help with this?

    I presume html would be the best approach, but if that is the case; are there any recommended workflows? Perhaps people use webflow and bring the code across or maybe there are other faster ways? Webflow looks good, but its pricey.

    Chat GPT does a fairly good job in getting you started, but in cant do any of the texturing/icons artwork. Its only really good for the raw layout and even then you also have a lot of customization work to do afterwards.

    I know that a lot of C3 devs just tend to make casual games that only require a super simple UI, but are there users with any tips or best practices in order to create larger scale UIs?

    Thanks

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Apologies for not responding.

    In the end I just had my html slide on from the right to save time but I never resolved this. I have had to temporarily move to another project (non construct 3) so I cant address this at the moment, but in the future I hope to come back to investigate more on this. Principally using C3 commands to animate html elements.

  • I have a html window (element) that I can position off the right side of my screen fine, but when I try to position less than x =0 (off to the left of the screen) the html window wont move below 0 (eg x=-50). Why could this be?

    I'm am doing all the positioning using the c3 event sheet.

    Cheers

    Tagged:

  • Ha ha. Like my brain. Okay cheers.

  • By the way, is that a new thing? ie Mouse.x("layer")

    I dont seem to ever remember encountering that before.

    Thanks

  • Okay. That's it - I had to use Mouse.x(1) because the canvas was on layer 1. Perfect. Thanks

  • I thought that too, but doing that and clicking on the canvas somewhere gives me console results like x:3770.6669921875, y:1912.3332519531

    I would have thought the result needs to be between 0 and 100 for both x and y.

    EDIT: It seems that when I click on the canvas, the canvas is at x:640, y:20 . But the Mouse is at something like x: 4900, y:1900

    It looks like the mouse is using different coordinates to the canvas?!?!

    How do I fix that? The scale rate is set to 100% on all layers

  • I have a 100 by 100 canvas on my screen that I want to draw onto at runtime using the mouse. The canvas could be positioned at any random place on screen. Its this little square I want to draw on with the mouse.

    Using the Fill Rectangle tool, how do I find the correct co-ordinates to draw on this canvas from the mouse position when the mouse is clicked?

    I have tried all kinds of offsetting approaches using javascript but I cant get anything to work and it seems overlay complex for a simple task.

    Is there an easy way to do this?

    Thanks

    Tagged:

  • 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: