kingcrab's Forum Posts

  • 14 posts
  • Thank you!

    After little experimentation it seems that the canvas will be loaded to the frame that the first instance of the sprite is currently playing. So by changing the frame in the first instance and one select instance picked from the sprites I can add a specific canvas Image to a specific sprite.

  • I am trying to pick an instance of a sprite. To said sprite I want to load the image from a canvas object using Load Image From URL: DrawingCanvas.SavedImageURL. However, I noticed that using the pick conditions doesn't seem to work for the Load Image From URL action.

    For example, when I pick by IID, if the IID exists then all the sprites will be picked. If the IID doesn't exist none of them are picked. My question is why is it that all of the sprites are picked when only the one with the set IID should be picked?

    What I am eventually trying to achieve, is that I have multiple canvases which each have a corresponding sprite. Each canvas will be loaded to their corresponding sprite without interfering with the others.

    Thank you in advance!

  • If you want the ultimate to rise exponentially according to the bossHP you could consider using a fraction of bossHP. like x/bossHP.

    Here is a c3p if you want take a look at it. https://file.io/wanCf2zt1zJy

    The function I used in the example looks like this in geogebra.

    Im not sure if this is what you were aiming for but I hope it helps.

  • In this template https://editor.construct.net/#open=3d-castle-maze the player moves by tween, sliding a fixed step forward. This could be applied for Baldi's movement.

  • So, I have two instances of the same canvas object (Canvas1) that have the blend mode Source In. These two objects overlap and the result shows the parts where the canvases overlap.

    I have a third canvas (Canvas2) which is a separate object. I want to paste what I see on the screen (the parts of the two canvases (Canvas1) that overlap) on this third canvas (Canvas2).

    The count of Canvas1 should be scalable as I intend that there will be more. Pasting a canvas to another canvas works fine just using the Paste Object expression. Pasting object with blend mode also works fine using this method, https://www.construct.net/en/forum/construct-3/how-do-i-8/paste-object-drawingcanvas-152212.

    However, when I try to mix these, (canvas to canvas) and (blend mode) it doesn't work. What I'm trying to do might be so obscure that construct just doesn't have support for this but I thought I would ask anyway.

    To the kind helpers, thank you in advance!

    Tagged:

  • Sorry for the late reply, but thank you for your help!

    I decided to use dictionaries and it turned quite messy since I added other information to like the color and life time of each cell but I got it to run quite fast with just events.

  • I am thinking creating cellular automata in construct. Previously, I have tried using arrays and dictionaries to store cell data. I found that dictionaries worked better with comparisons when using the "has key" condition.

    My question is that should I try to use another datatype like Binary, CSV or JSON. I know that heavy algorithms like cellular automata should be done with code and not events, but unfortunately I don't know javascript syntax.

    I don't know much about big O notation, but if anyone knows the time complexity of comparisons in different datatypes in construct that would also be greatly appreciated.

    Thank you in advance!

    Tagged:

  • To copy some random image from one canvas to another you need to save it, load into a sprite and then paste the sprite on canvas. It's a lot of work..

    How exactly could you load a canvas into a sprite?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you!

  • I have been looking up tutorials on how to make a 2D active ragdoll similiar to Stick Fight: The Game (https://store.steampowered.com/app/674940/Stick_Fight_The_Game/).

    But all the tutorial that I have found are for unity or some other game engine. This https://www.youtube.com/watch?v=q_enFap8Pr8 is the tutorial I was looking at. The tutorial is good, but construct doesn't have the same features or I don't know how to recreate them.

    If you watch the tutorial at 3:55 he uses an expression called (lerpAngle) which construct doesn't have and I have no idea how to recreate.

    The movement also uses unity animation where he changes the Target Rotation variable per frame, but I think it can be managed in C3 with code.

    The question is how to I recreate these features in C3 to make a wobble little stick figure?

    Thanks in advance!

    Tagged:

  • Thank you!

  • I have been experimenting with the Jigsaw puzzle template and I was wondering If I could make an object that could break into small triangles with the original image.

    The problem is I don't know is it possible to paste an object to a drawing canvas so it obeys the poly points previously placed. If they did I could spawn drawing canvases with triangles that had the image only on the triangle.

    I'm not sure that this is possible due to the paste object expression overwriting the whole canvas but if there's a way I would love to know.

    Thanks in advance!

  • Not sure if is similar to the one that they post it in the other thread that you linked as I couldn't see any example but for the description I think is similar to one old capx that I made long ago.

    See if that helps:

    https://www.dropbox.com/s/5l2erujqfifcax2/Camera%20Trasition.capx?dl=0

    Well this is not exactly the same effect they mentioned, but still thanks for the help!

  • I was looking at this (https://www.construct.net/en/forum/construct-2/how-do-i-18/zoned-restricted-camera-88634) forum post and it seems to fit all my needs but the .capx link doesn't work (it's 8 years old) and they don't talk about how to code works.

    Does anyone know how to recreate this effect.

    Thanks in advance!

  • 14 posts