5b25d909-8ab1-4ffe-a9fd-830f580cf260's Forum Posts

  • Okay I know what you mean now! Yes I believe this would be possible using the Pathfinding behaviour.

    It might be worth reading over the documentation and seeing if there is an example project you could use to help your understanding. As it's late here I will try put together an example tomorrow if you are still struggling.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. is it possible to move the mouse based on the grid size (let's say 16x16) instead of having a normal fluid movement?

    So do you want the mouse to move in 16 pixel increments? I am not sure if this is possible as Construct only reads from the mouse it cannot control it.

    As for the example I provided you can move a sprite in pixel increments based off the mouse movement however.

    2. is possible to draw a series of squares based again on the grid size with a distance between the mouse pointer and a sprite?

    This is possible you will need to calculate where to place the sprite based of the grid size (16x16) and the viewport size. You maybe need to look into pathfinding or see if you can use the existing pathfinding plugin.

    It's difficult to point you in the right direction without a grasp on what you are trying to achieve. Maybe you could clarify your image you provided and what it means?

  • Hello,

    I am not 100% sure what you what to achieve here but I would say it sounds possible.

    Take a look at a small example (second post) here where I move a sprite (cursor) by tile using the mouse.

    https://www.construct.net/en/forum/construct-3/your-construct-creations-9/wip-classic-rpg-modern-167539

  • Hello,

    So I have taken a quick look at your example. I would have a column for each task called "completed" in the array. The value for the column in each row is either true or false (initially false).

    Now when you perform the task you update the boolean value to true, create a condition which will also update the text colour for that text elements that are completed.

    I would also look at not placing the text elements manually but spawning them automatically when the task UI is opened. Doing this will allow you use the previous text elements position and size to determine where the next one gets placed.

    As you are probably realising, the task isn't always as simple as you might think :)

    Let me know how you get on.

  • Thank you for confirming.

  • Cool work :)

    Thank you!

  • Hello,

    I have been using C3 for over a week and have been enjoying what it has to offer. Looking at the blog post revisiting 2021, I can see a lot of work has gone into each release.

    There has been a lot of work on 3D features which is a nice addition, so is there a defined roadmap as to what to expect for future releases?

    Not just what the engine will have to offer but also the addon SDK.

  • Hello,

    I have not yet used the Array plugin built into C3 yet. I am a javascript programmer so I do most of my programming using scripts over event sheets but the concepts remain the same.

    The array documentation is well written but for someone new to programming concepts in general I can see how it might be difficult pick up right away.

    In that case, there is also a good example project called "Languages from JSON template" you can find on the startup screen.

    The interface to them in C3 is very similar to a spreadsheet. You would define the dimensions, which is essentially a visualization of how many rows and columns you need. Each row would be a task, each column a data point representing that task. In this case it be be a column for the task description and another one presenting if the task is complete. (check the JSONLanguageData.json file in the startup example)

    Now you have your data defined you need to load it into your project using the AJAX plugin also shown in the startup example and explained in the documentation.

    Once the data is loaded into memory, you can now iterate over each row spawning new text which pulls the data out of the array.

    I hope it helps, i'll try help you further when you encounter more specific problems.

  • Hello,

    If you stored each task in an array along with its status of completion and the mission ts for, you could filter it and loop over each and place it accordingly to the previous one, leaving adequate spacing.

  • Hello,

    So I am slowing getting more proficient with C3 but my ideas are flowing fast. I got distracted from finishing my character movement and created a tile editor. I have some ideas to use something similar to allow players to build within my game.

    This was made using the mouse and tilemap plugins. The cursor is just a sprite instance calculated to cover the tile which the mouse is hovering over.

  • Also thinking about my response. You might not need the tick condition with the keyboard input as the event sheet might do this on a listener anyway.

  • Hello,

    I will attempt to assist you here but I for one, don't use event sheets and two, you have two contradicting statements.

    have a boolean that makes the player change Y position. But once it does, it is stuck on the Y position I just gave him.

    How can I make this event only play once? (Set Y, and then leave the player on its own again ¿?)

    Looking at your event sheet I am going to assume the player is stuck at the first Y position.

    You have 4 individual conditions, and they all run once, apart from the first condition where your setting your X position.

    You can have multiple conditions to an action. Here is what I think I understand you need to do.

    Condition #1 - Keep as it is.

    Condition #2 - Add a second condition to it. So it's Every tick & On Space pressed.

    Condition #3 - Add a second condition to it. So it's Every tick & Is Boolean.

    Condition #4 - Keep as it is.

    Something like this:

  • Hello,

    You might want to look at the File Chooser plugin.

    I haven't used it myself but it allows you to choose a file or image from your device, read the file or display the image.

    Not sure what you mean by download it, as it already exists on the users device.

  • Excellent, have a good day coding!

  • Hello,

    This reminds me of runescape many years ago.

     "[offsetY=" & (sin(time * 300 + loopindex * 90) * 8) & "]" & "[color=hsl(" & ((time * 100 - loopindex * 20)%360) & ",100,50]" & mid(RainbowTextString, loopindex, 1) & "[/color]"