cvp's Recent Forum Activity

  • I am not totally sure i know what you mean about "create extension"

    I have made a small example of how it could be done.

    .capx

    Everytime you drag one of the balls into another ball both of the balls will shrink 25% in size.

    its a function call. So if you want it to be something else just alter the parameter going in to the function.

    Was that what you were looking for?

  • V is just a simple counter variable.

    It is set to 2 as that is the number of sprites in the bottom it adds together to make the wantedTotal.

  • Try to look at all of the nice tutorials and in the manual.

    There is also a post in the FAQ section about RTS games.

    And search the forum. There is a lot of post about it already.

  • Sure

    .capx

  • I mean in the function command to display the parameters, I want to be able to add visible quotation marks around Function.Param(4) as opposed to adding them to the function call itself (and passing in the quotation marks as part of the parameters).

    Is it possible to do this?

    Yes you just have to use the escape character as i mentioned.

    Something like this

    .....newline & """" Function.Param(4) """"

    Made a small .capx

    Was that what you are looking for?

  • If you want to shrink the sprite by 25% at each collision you could just multiply the with and height with 0.75 at each collision

    If you want it to shrink a % of the original size, then just store the original size in a instance variable. Then multiply the original size with 0.75 and subtract that from the current width and height.

  • Take a look at the pathfinding behavior. That could be what you are looking for. That can also help you move around obstacles etc.

    Manual entry about pathfinding

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use the "set scale" on the layout to zoom in and out on the layout. If you just want to scale the button you can also use the "set scale" command.

    If you want it to be more smooth use it together with lerp(there are some good examples of how to use the lerp funtion in the FAQ section. Just search for lerp on that site.

  • I made an example.

    It might not be the most pretty example, but as far as i can tell it works <img src="smileys/smiley17.gif" border="0" align="middle">

    .capx

  • Ok

    I dont have time to make you an example right now. If you cant figure it out yourself I can make an example for your tonight.

    But my approach would be:

    Instead of creating the wantedTotal from a random number. Create the number from the numbers you have available on the sprites in the bottom. So pick 1,2 or 3(depending on how you want it) random numbers from the sprites in the bottom and them add them together to get a new wantedTotal

  • ahh.. ok.

    So the problem is that the wantedTotal asked for a number that is not possible to make?

  • You can use a double quote as escape character.

    So if you want the quotation marks to be visible you should use 2 "" evertime you want to display it.

    e.g.

    set text to """Damage:"" " & Function.Param(1) & newline & """MaxSpace:"" " etc.

cvp's avatar

cvp

Member since 23 Sep, 2012

None one is following cvp yet!

Connect with cvp

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies