Syazanie's Forum Posts

  • Yeah literally the title. I can't seem to find any expression that retrieve the text's colour value. Any help? :\

    Thanks!

    Tagged:

  • You should be able to open that demo even in trial version of C3.

    Ah I see. Thanks for that info! And thanks for even helping me!

  • > But how you make textbox can change the radius? I can't figure that out.

    I told you it's not going to be an easy task.. Not extremely difficult, but tedious. You can use my C3 demo as a reference, but of course some expressions will be different with Canvas.

    Well yes and I also told you that I don't have C3. But apparently C3 have a full version for free now! So thanks!

  • Oh and by the way, your website is really cool! I found many fun and great things there!

  • No, I never heard about Canvas plugin being slow.

    Here is a demo:

    https://www.dropbox.com/s/0edm67m11iibco9/RoundedRectangleC2.capx?dl=0

    Oh my god, that's super great!!! I'll make a backup in a minute. But how you make textbox can change the radius? I can't figure that out. I thought just make a simple Variable but then I don't know how to change the radius without creating a new Arc (Is that term right? xd)

  • Oh I have a really stupid request... can you upload a screenshot of the events of that Rounded Rectangle using Canvas? That would be really, really helpful! Because I don't even know how to use Canvas nor Paster as of right now huhuhu

  • Sorry, my mistake - you can't do it with Paster, but it's possible with Canvas. (You are using Construct 2, right?)

    https://www.construct.net/en/forum/extending-construct-2/addons-29/plugin-canvas-41782

    It's not an easy task - you will need to draw a path with 4 arcs and 4 lines between them.

    I have a demo, but it's for C3 and there I used circled for corners:

    https://howtoconstructdemos.com/draw-a-rectangle-with-rounded-corners-c3p/

    Hey, thanks for that! I'm using C2 unfortunately. But, I just followed your initial advice, which make without Canvas/Paster plugin and just make a rounded-corner on Figma or something and then import it to Construct 2 using 9-Patch. I just made multiple rounded corner :D. I realized I do not need dynamic corner radius. Thanks though!

    And I also found out Canvas plugin make the device slow? I'm planning to release my game into mobile. So that's also half a reason on why I don't want to use that plugin :p. If it's not that slow, I will though!

  • OK so I tried the Paster plugin by Rojohound... and I don't really understand how to use it. Is there any guide/documentation or just straight up on how to make a rounded corners? xD Sorryy

  • Or do you mean you want to change the corner radius? (amount of roundness)

    Yeah, this what I meant. I'll take a look into the Paster plugin! Thanks! Although, will it be like HTML element? Which will be always floating on top of everything? If yes, I don't think I can use that now :(

  • You mean rounded corners? It's easy:

    Ah. I know how to do that but I don't know how to do it WHILE IN GAME (In real-time). I really hope I can do it in-game and not need to import square-rounded corner image and put in 9-patch (It works but not what I want unfortunately :c)

    I hope my explanation is not too weird :p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Literally the title xD! I want to make my box (default) sprite (Or 9-Patch) to have border radius.

    I used the HTML_Div by Pode but because it’s a HTML element, it’ll stay on top forever. So I scrapped it and make a simple square using 9-Patch. Can anyone tell me how to do border radius?

    Thank you! Merci beaucoup!

  • Tada!

    https://dl.dropboxusercontent.com/u/161279569/construct2/forum/mimic_layer_mask.capx

    This is a very quick example of applying a "dream like" effect to the top and bottom portions of the screen. It uses Construct 2's built-in autorunner demo.

    Steps to reproduce:

    1. Create a new layer with a parallax of 0,0 and place it above the layer(s) you would like to change. This will effect all layers underneath this "layer mask."

    2.) Create/import a new sprite on this new layer or tiled background that fades from white to transparent.

    3.) First apply the "Divide" effect to the new layer and the add any other effects you would like after that.

    That's really all there is to it. The whiter the area, the more of the effect you'll have and the more transparent the area, the less of the effect you'll have.

    I plan on using it to create a tilt-shift effect in a future game, but I can also see this as a way to create patchy fog, fuzzy line-of-sight by pinning the image to the player, etc. This method should work with all effects so you should be able to do things like apply a wave effect just above the ground to imitate a hot sunny day, etc.

    Pretty cool!

    6 years ago but still very good!!! Thank you! If you want to do the translucent blur effect, this'll make it happen! Thank you! I got it working!

  • You can use the same principle with Physics. On collision set Physics Velocity: X component=(Self.Physics.VelocityX*1.1), Y component=(Self.Physics.VelocityY*1.1)

    Don't forget to set Bullet=Yes in Physics properties for the ball, otherwise it may glitch when moving too fast.

    OH MY GOD. I FORGOT TO SET THE BULLET TO YES!!!! THANK YOU SO MUCH! AND IT WORKS!

    THANK YOUUUU!!!!

  • What behavior are you using to move the ball? If it's Bullet, you can do something like

    Ball on collision with Paddle -> Ball Bullet set speed to (Self.Bullet.speed+20)

    Oops! Sorry! It was 2 AM when I posted that. Not very informative. Anyway, I am using Physics behaviour and it can't speed up properly. As it will make the ball very, very buggy. Either it works or it just slows the ball down! This is the same too when I changed it to impulse.

    i.ibb.co/x7CJNGp/THE-262.png

    It's a Pong clone game. I really wish every time it hit the paddle, it'll add to the speed...

    Thank you!

  • Hi! I just wanna ask, how do I speed up the velocity (speed) of an object? I'm making a pong game and it's really hard to do what I want. That is...

    Maxed the current speed as 800 and whenever it hits another paddle, speed up the ball a bit.

    I tried many things and I can't seem to add whenever the ball collides with the paddles.

    EDIT: It's answered! An answer from dop2000

    You can use the same principle with Physics. On collision set Physics Velocity: X component=(Self.Physics.VelocityX*1.1), Y component=(Self.Physics.VelocityY*1.1)

    Tagged: