marlon667's Forum Posts

  • Oh, and you couldnt import them into existing projects. That was my main motivation for requesting this :/

  • Didn't think so. I would have to build new assets in both my projects. Oh well.

  • Wow, that's really useful, thanks Kyatric :) Only thing is, if i was to update my template, the projects that use it wouldn't update aswell would they?

  • Kyatric Can you define your own templates? That would be exactly what I'm looking for. How do you do that?

  • I'm not sure if this is possible. I went though C2 last night and posted on the forum a couple of days ago, but no one replied, so I'm going to assume that there isn't any way of doing it yet.

    My idea is that we could export C2 Objects as C2 Exclusive readable files.

    I though of this because i am working on two projects that have pretty much all of the assets the same. I felt it was going to be tedious to have to recreate all my assets twice over.

    Basically, I think you should be able to export the following, just one or in bulk, as a C2-readable file, something like MonsterSprite.caxpt:

      Sprites Backgrounds 9-Patches Particles Families Containers

    Each .CAXPT file can include the object, any instance variables, and any related Events or Event Sheets for easy sharing between projects , and even to other C2 Users aswell. People could share their animations and game mechanics this way.

  • Is this even possible? I saved my project as a .caproj but i only saw images, and not any kind of file that would be the sprite actions. I guess that it's embedded into the .caproj file :/

  • I'm trying to upload the tutorial, but for some reasin I keep getting a Server URI Error. I've asked about it, but no chanbe at the minute :/

  • Kyatric Nope, still wont post for me. Tried it in several places aswell, just tried again, still the Server URI Format error...

  • Forgot to mention, this would include Sprites, 9-Patches and other game objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you do use WebSockets, you will need to write a Server from scratch to handle the database logic.

    If you're good with C#, I recommend using the Fleck server as your base (Google it!). C# is good because you can easily connect to MySQL through it.

    If you prefer JavaScript, you can use Node.JS with the WebSocket and MySQL plugins installed.

    It would be easier to look at that PHP chat program and adapt it to your own needs, but WebSocketing is more fun in my opinion :P whichever's best for you :)

    By the way, you said you wanted to use this to make transactions? Have you considered Clay.IO? They allow you to integrate In-App Purchases through their own desktop platform. They've even written their own C2 Plugin for us! They also provide an Advertisement API for more ways to earn money. You should check it out: go to clay.io and go to the developer section to find out more.

  • Is there any way I could use the same assets that Construct 2 makes and share them between my other projects? Basically, I'm going to have a website with a C2 widget embedded into the side bar, and then an actual game client that uses the same animations/images/sounds. Is there any way for me to share between projects?

    Oh, and i was also wondering if you could share the C2 assets with an actual website, and how you would process them so they come out like they would in a C2 game :)

  • I'm pretty obsessed with WebSockets right now, and the way I would personally do that would be using Websockets to connect to an external server and have that communicate with a database.

    However, a much simpler way would be to use PHP code. You will have to write it from scratch, but PHP does give you some methods to help connecting to the database. It's how PHPMyAdmin works (hence PHP).

    There is an example in the tutorial section on how to make a chat application with a MySQL database, you can easily adapt that to your own needs. All it takes is a little knowledge of Structured Query Language Statements, like "SELECT * FROM table WHERE ID=1" (Select all the users from this table that have 1 as their ID number).

    Oh, and by the way, PHPMyAdmin is not actually a database. MySQL is the database that PMA connects to. So PMA is just a database client. Also, for aproject like this, I would use MySQL instead of something like Microsoft SQL Server. MySQL is much easier to use.

    Hope this helps :) Let me know if you need any other advice/help :P

  • Simple enough :) thanks.

  • I have an X.509 certificate with which i have encrypted my WebSocket Server. Do I need to do anything special in Construct 2 to allow my sent string to be decoded? Or do I just have to use "wss://" instead of "ws://"?

  • Hey, I'm looking for some opinions on the best way to develop a dynamic website?

    I was thinking about this while doing some simple projects with Construct 2, thinking that maybe I could create a dynamic website for a game with it. It may be a little crazy, but I have this weird, irrational hatred for PHP, and was thinking I could use WebSockets to communicate with a server and update things in "real-time"

    Basically, I want people to be able to log into the website, and stay logged in like a regular site. This site would be a portal to my game, which would open in a separate window providing the user is logged in and have clicked on the "play" button.

    Does anyone know of any tools that are as powerful and as simple to use as Construct 2, but for websites. Even better, would it be possible to build a website with C2?

    Just something that's been playing on mu mind :P