Ubivis's Forum Posts

  • updated the download with v2.

  • I will update the normal download later today with v2.

    Anyone who is interested in downloading development releases, the git is set up here:

    https://github.com/Ubivis/C2RPG-Essenti ... -Generator

    • Does he have the same or a newer version of C2 installed (if it is older, you can't open the project).
    • Do you use any 3rd Party Plugins? Those are not in the capx file bundled, so he needs to download and install the required plugins too

    EDIT:

    just realised that I might have misunderstood your problem

    Do the textfiles end with .txt? If it is something else, does your mate have that extension assigned to any editor that the system know which program to use to open that file?

  • I would currently advice to not use the current version. I encountered a infinite loop bug in the code and am trying to get rid of it.

    Roadmap for v3 (v2 already available on github, but not very useable):

    • quicker algorith for room creation
    • optional generation of entry and exitlocation
    • optional generation of locked doors and key locations

    If someone likes to see a little demo:

    Demo

    • You can walk around with WASD (just a visual demo, you can also walk through the black).
    • Unfortunately, the infinite loop bug triggers from time to time. You will notice on the right textbox that there is no map created with the dimensions 100x100. In this case, you need to close that browser window/tab and call the URL again in another window/tab.)
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thank you very much monitz87, just did that after I posted my request

    Working fine now.

  • Hi all,

    whatever I try, I am totally blocked with looping through an array (read the manual, tutorials and others posts, but nothing helped me).

    This is how my loop is set up:

    [attachment=0:k0ykt8pf][/attachment:k0ykt8pf]

    I added the loops variable to see, if the loop is running at all, and I can see that it only runs 1 time.

    Dimensions are:

    x=100

    y=100

    z=1

    Any idea, why this does not work?

  • I can share one tomorrow, I am currently at work and am not able to set one up.

    For everyone who likes to help on improving the plugin, please feel free to contribute here:

    https://github.com/Ubivis/C2RPG-Essenti ... -Generator

  • And also here:

    https://www.scirra.com/tutorials

  • A Plugin which generates a dungeon of custom size and populates an array object with the generated information.

    Download V0.1 (Early Alpha with an infinite loop bug. Use at your own risk.)

    Download V0.2

    Changelog:

    • added expression "LoadStatus". 0 = not run or not finished generating; 1 = completed generation

    3D Live-Demo

    • You can walk around with WASD (just a visual demo, you can also walk through the black).
    • Unfortunately, the infinite loop bug triggers from time to time. You will notice on the right textbox that there is no map created with the dimensions 100x100. In this case, you need to close that browser window/tab and call the URL again in another window/tab.)

    2D Demo CapX

    • Simple Demo which shows how a Dungeon can be generated and shown on screen

    2D Live Demo

    • More advances than the downloadable .capx

    Character movement with "WASD"

    Usage:

    "Random Dungeon Generator" is a single action Plugin which requires an array object available in the project.

    [attachment=0:39lyixxs][/attachment:39lyixxs]

    Variables:

    MinRoom = the minimum amount of rooms to be created

    MaxRoom = the maximum amount of rooms to be created

    MinSize = the minimum size the whole Map needs to have

    MaxSize = the maximum size the whole Map needs to have

    MapSize = This is the width and height of the Map, this should always be bigger than MapSize in order to avoid errors

    Squash = If set to yes, an algorithm is triggerd which moves the created rooms closer to each other

    Array = You need to select an array object (the content of that array will be overwritten when the event is called

    Arraylayout:

    The Array will be filled with the following information at each x/y coordinate:

    1=Floor

    2=Wall

    3=Empty

    This Plugin is not completed yet (some additional functions will follow as soon I have some time to work on it).

  • I'm not sure if I understood of what you try to achieve.

    Do you mean:

    You have one sprite that you control and when you collide with that sprite at another sprite your sprite will have the same image as the other sprite?

  • easiest way is by setting up different animations for the sprite. based on the event, just change the animation to be shown.

  • the question is:

    how do you spawn them at the moment?

    Let's assume (as you have not shared a capx, so it is just guessing) you currently have a spawn at every 5 seconds.

    Take that spawn out of that condition and change it to 1 second. Set up a variable that is deducted by 1 every second, when that variable hits "0", trigger an event to spawn an enemy + reset your variable back to the number of seconds you want to wait again.

    Same you can do with the speed. I don't know how you handle it at the moment, but you can change the property every x seconds to increase the speed.

  • perfect and very useful

  • I guess you have an audio object placed on your layout and whenever you need to play a sound you call an event to play a sound file.

    At these events, you need to add a condition to check your global variable if it is true or false.

    On your setting page, you need to add an object with which your can interact.

    For example:

    You have a sprite of a square with is either checked or not (checked = playing sound; unchecked = sounds disabled).

    When you click on that sprite, set your global variable either to true or false depending on what you need (like, if it is unchecked and you click on it, set the variable to true and change the sprite to show the checked image).

    Hope this helps you to understand how variables are working and what you can do with events. If not, I would suggest to have a read of the C2 Manual first, as these functions are the basics for any game that you create with C2.

  • Create a global variable and set it to either true or false. In you eventsheet, for each event that would trigger a sound add a condition to only play it when that global variable is true.

    Done