Vuuv's Forum Posts

  • A randomly generated map isnt that easy to make for a newbie. But not impossible

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's no plugin like that, cause there are different requirements for every randomly generated content. I suggest you try to write your own plugin

  • Wow! That looks awesome!

    I like your gamedesign! It seems you have thought very well about what you want to do.

    But you have a lot of features, I hope you find the motivation to keep on programming.

    Are you doing this game all on your own?

  • I hope I understand your questions:

    1. Yes, when you use the correct format. You can use single frames or spritesheets and construct supports all common image file formats.

    2. Yes, when you made the animation.

  • Actually you can'T explain creating how to randomly generate a map in short time.

    First it depends how complex your world is. You need to make sure that your map is "valid".

    For example when you have a 2D map of an world full of islands:

    You need to ask whether a tile is part of the shore, is in the middle of the sea or land.

    When you randomize everything, the computer still makes some crazy thinks like supertiny islands or islands with a very stupid shape. So you have to tell your computer the maximum/minimum size of an island.

    And then you decide you also want rivers in your world of islands, which will be even more complicated.

    So I think it's impossible to tell you how to do it. But I wouldnt do it with c2 but with a plugin.

  • You can only pass strings/float/integer between Plugins and Construct 2.

    But since JSON exists, this shouldnt be a problem

  • I hope i got you right:

    Put all your "elements" in a family.

    Add instance variable "id" for the family and give each element an id.

    Then you need a config to check what new element you'll get.

    You can either save it manually in an array (X axis would be the element id, Y Axis the element id of the element you combined and Z the result).

    In this cases I like to create my own "Config" Plugin where I save all the data in a JSON Object and return it as JSON String to C2 when needed. (normally I use Hash Plugin to do this, but you could also use an array stucture).

  • Solution One:

    Set the monkeys origin to its hands and then use "Set position to another object"

    Solution Two:

    Calculate

    the difference between the origin and the monkeys hand and move it.

  • Hey Rex,

    just a simple question:

    I have very complex JSON structures and wanted to loop my results in a foreach. But then I saw, that you restricted "For Each"-Condition to strings and numbers. (In my case it was just a multidimensional json structure, so ForEach had to handle an object). I removed the line where you checked the type and everythings working very smoothly (for almost a year now).

    Just wanted to know your opionion why you restricted for each loops Thanks.

    P.S.: I love this plugin!! I couldn't imagine working without it!

  • Open Start Menu

    -> Type in the search field "regedit" and press Enter

    -> Browse to HKEY_CURRENT_USER\Software\Scirra\Construct2\html5

    -> Normally it should exist, so just press right click on it, choose "Edit" and set it's value to 1.

    -> If it doenst exist, rightclick in the empty window

    ---> New

    ---> DWORD Value

    ---> Set value to 1and name the value "devmode"

  • As I said I currently use webstorage to save all my data. I'm already working with JSON Objects and convert them to strings whenever I save them back to webstorage.

    I tried to setup something like a database. Every key in the webstorage represents a table where I save my JSON string. Unfortunately I have to update the whole table whenever I change one variable in the string.

  • Kyatric: Yes, this wouldnt be a problem. But what if I want to make a complex offline game?

  • I didn't find a solution yet, how to use SQLite with C2. I'm working with Webstorage instead now. But the handling as awful since you just can save strings.

  • Have a look at Rexrainbows awesome "MoveTo" Plugin.

    Or use bullet behaviour.

  • Update: Restart of C2 didnt help but reboot of the computer. Maybe a bug Ashley?