dop2000's Forum Posts

  • If you can't open the capx, rename it to .zip, unzip to an empty folder, open .caproj file in Notepad and edit this line:

        <saved-with-version>24700</saved-with-version>
    
    For example change to:
        <saved-with-version>24400</saved-with-version>
    [/code:1dq0e90q]
    
    Then open it normally in C2.
    
    To speed up objects in C2 you can use System->Set Object Time Scale. This will speed up (or slow down) everything related to this object - animation, timers etc.
  • NECRONOMICRON

    It's a completely different kind of game. The light ray is moving (growing) slowly and you need to place mirrors on its path. And all this in isometric projection.

  • Please reload the capx, I made some more changes.

  • You really need to read a few tutorials and look at some examples of other people's projects.

    This will save you a lot of time!

    You should not create dozens of identical sprites! This is the biggest and most serious problem with your project. Don't do this!

    Create just one sprite and make lots of its instances.

    Learn to use instance variables.

    Learn to use functions.

    Define correct collision polygons and image points in your sprites.

    I fixed some of these issues in your project and optimized your code a lot.

    As for the ray reflection, it still needs some work, I didn't have time to finish it. See my comments in the event sheet.

    I don't think Light plugin can be used in this game, so I removed it.

    Here is the capx:

    https://www.dropbox.com/s/879vyvyxsxi0g ... .capx?dl=0

  • Your link is broken.

    Try posting it without the "https://" and make sure it's not get shortened.

  • kentoy

    What's "H5"?

    I haven't tried this, but there are 2 plugins to convert images to/from string (which you can save in local storage):

    viewtopic.php?t=68494&start=0

    viewtopic.php?t=68521&start=0

    Links in those posts are dead, you can download the behaviors from github:

    https://github.com/JohnnySheffield/C2_Plugins_Pode

  • You do not have permission to view this post

  • wizdigitech

    What if there are many boxes piled at different angles? I also need to throw them and boxes should bounce and knock off other boxes etc.. So no, I can't change their density.

    I already have a solution in place with temporary setting boxes as Immovable. It seems to be working quite well. If I have any issues with it, I always have an option of switching to ChipMonk.

  • An easier way in just one line:

    System-> Compare two values-> ((a=1 & b=2) | (a=2 & b=1)) Equals 1 : bla-bla-bla

    & means "and"

    | means "or"

    1 means "true"

    0 means "false"

  • You can definitely do this with CSV plugin:

    There are demo projects to help you get started.

  • Sprite.ImageWidth

    Sprite.ImageHeight

  • Have you tried simply multiplying SoundVolume by 1.2?

    SoundVolume changes linearly, so 20% increase would be SoundVolume*1.2

    You might want to add clamp() or min() to limit max volume.

  • There are many ways to do it - with arrays, dictionary, CSV/XML files etc.

    Here is an example where list data is stored in string variables:

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

  • Glad it helped

  • There was a very similar post, where character was climbing something, at the end of the climb it was a fraction of a pixel lower than the floor level, which caused it to bounce up and jumping/falling animation was triggered for a very short time.

    It may be something similar in your case - character is either a bit higher or a bit lower than the floor at the end of the climb.

    You can add some debug output (Browser->Log) to your events to check Player1 coordinates at the end of the climb, at the beginning and end of falling/jumping animation etc. This should tell you what's going on.

    Or you can simply add a short cool-off time after the climb, something like 0.2s, during which ignore jumping/falling events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads