warville's Forum Posts

  • Hey guys , thank you for the replies , this was a long time ago , and i had to create a virtual keyboard in construct .

  • rexrainbow i will upload the source files of the plugin in the same folder , i do not intend to make it as a separate behavior , i actually included the fabric-brush.js in the same plugin.

    here are the files , also note i have another problem with converting to SVG , it works when the canvas is empty but when i insert a rectangle it gives me an error , t.Match is not a function.

    https://drive.google.com/drive/folders/ ... sp=sharing

    i also added an example capx which include most of the features i added . it wasn't for share purpose so it must be confusing , it is for me to test on the go my plugin functions.

  • I have been working on porting Fabric.Js to Construct 2 i have been stuck in linking the canvas to Fabric canvas. but i got it solved by using rexrainbow Fabric.js plugin as a reference , i was happy when i found he made that plugin because i have been looking for a solution for some days.

    i have done some nice progress. ( i know he already done a fabricJS plugin but it was very basic and lack most of the features. and basic canvas features , so i had to make my own that serve my needs.

    but i was stuck again with a problem and i wish rexrainbow can help me. i used another fabricJs extension called Fabric-brush.js

    which is a small library or custom brushes the problem is , after i draw with this library in free Drawing mode i try to export my image using toDataUrl or toSVG ... all i get is the basic shapes that i drawn like rectangle but not the Brush drawing and also it gets erased from the canvas.

    please see the images on my drive to see how i implemented the function for free drawing , and screenshot of the problem.

    https://drive.google.com/open?id=0B3inO ... ExFSldXUGs

  • i was trying to implent FabricJs in C2 to build a drawing app. but i get stuck in linking fabric js to This.canvas . can you help me ? can you send me your plugin please ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes it is possible , it may not be exactly the same as your example, and it can be like your example with some more work , use containers , use pin to object(behavior), use custom movement ( behavior) this is what i though of , but it can be done in many ways.

  • there is no fix for this because it's not a problem,

    first most of this is visual in your eyes

    second your object is moving very fast and very big in size or very small

  • Your text will be a variable, from preexisting values like a dictionary or array, when the proper trigger happens you set the text to that specefic value , then your journal will be in a layer that become visible when you press J

  • as long as i experimented with C2 i don't think there is a way to do this automatically. You need to delete the unneeded layouts and files, because it will still be there in the build and this will increase the download size , but i don't think it affects the RAM or CPU as long as it is not loaded.

  • you are welcome

  • Doesn't look blurry to me too, maybe it is related to FPS , you are running it on a low spec computer maybe?

  • Here i came up with a simple solution, you can tweak it by changing values in the events and in the platformer object to make it the way you need it.

    https://drive.google.com/open?id=0B3inO ... Tl0R1FnWkk

  • make it like a scenario , using some collision checks and simulate control

  • your code is working properly, it's just you are not adding trigger once while true for your is overlapping condition, and if you are interested to know why?

    because IS OVERLAPPING is a timed condition like Every-tick it will do the action every time it's true, then it will keep pinning the 8Direction object to a new postion related to the big object every time which will make it in the same position.

    and here is a project file if you didn't understand.

    https://drive.google.com/open?id=0B3inO ... y1ZZDBHV1U

  • i think you are having a confusion here , local storage is not your files and folders , local storage is like a dictionary ( a register ) but the values are saved in a browser session so the next time you run the game the values are still there, and it is used for saving high scores, user data, etc . it has nothing to do with files and folders.

  • Hello

    Correct me if i got your wrong , you want to modify the Catapult example in C2 to make it limited between 10 to 45 degrees instead of 180° ?

    if that what your looking for , then it's easy , i just saw your post and opened the C2 example and added only 2 conditions to the existing one.

    here is the capx file : notice the difference between the original code and this there is only more 1 Sub-event made of 2 conditions for the touch event that drags the projectile and set the angle.

    https://drive.google.com/open?id=0B3inOTwCmTPDUFlxY09hbUU4SWc