rho's Recent Forum Activity

  • How do I find the plugins/objects that have been included in my project, and can I remove them if I don't need them. When I mean plugins, I'm also talking about the standard objects such as mouse/keyboard/ajax, etc.

    The manual is confusing and I'm sure I'm missing something simple. Any help would be appreciated.

    R

  • Problem Description

    I have been working on a project that will have some server related elements (ajax) and things were working fine and I had loaded test versions on a server and everything worked fine. Recently things have stopped working on the version exported and hosted on the server. Most specifically "system create" does not create things, but other things have been noted. If an sprite/object has been loaded onto the layout in advance, then it can be accessed and utilised. the only thing i can think of that was changed significant was the addition of the browser element so that i could look at the query string.

    Attach a Capx

    http://149.157.140.178/nebula/index.html

    http://149.157.140.178/nebula/debug1.capx

    Description of Capx

    I am attaching a stripped down version of my programme. it has 1 event sheet with 4 events. it should create 3 objects and utilise 1 existing. i am also providing a link to the hosted version. the capx does exactly what it wants locally and doesn't work when hosted. I have tested this on chrome/ie11/firefox and i am using a win81 laptop. I do not have another machine to test it with at the moment. I have not been able to remove all the things like browsers, keyboard, mouse plugin objects as i do not know where to find them to remove them.

    Steps to Reproduce Bug

    run the weblink for index.html

    Observed Result

    the objects that need to be created do not get created and all you see is some pink text in the corner on a white background

    Expected Result

    you should see the pink text on a black background, a piece of text that gets shows the tick count, incremented every second, and another piece of text that floats up off the screen.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    175 but was on 173 when i first noticed this

  • thanks... must be me... no addon's.. plain vanilla ie11

  • This could be me but the forum is no longer working under IE11. I noticed it a couple of days ago but I was away. I've cleared the cache but the same behavior exists where I cannot see the content reliably of the posts... generally can't. All works fine under chrome.

    so in case it is more general, i thought i'd flag it.

    R

  • thanks, so it should work perfectly for functions then that do not use globals

  • Hi,

    If I am using a lot of event sheets and I save as a project, I can see each event sheet as a separate file.

    If I am working on a new project but would like to reuse my existing events, can I just copy the event file over to the corresponding directory and hope that C2 will pick it up and incorporate it in?

    I've not tried because I'm pretty sure some hacking will be needed to make it visible. it might be simple but once you go down that road you begin to break the C2 flow and there might be hidden dependencies that I may miss?

    Would this work reliably? or at all?

    R

  • reading up is always good and the best source of info, but a quick summary is as follows

    local variables: within a single event structure, I often use them for intermediate calculations, etc. they can only be changed within that event and using them means that you don't affect things outside of your event. so it keeps things constrained

    global variables: very useful for information that passes between events (on the same sheet as well as between sheets and layouts). they are also useful for long-term storage of information... eg scores, progress. global variables could be used for all cases of local variables but in my humble opinion it is bad practice as you should keep the number of globals to a minimum and use them only when you need them

    instance variables: these are variables that are connected to an object and are very useful for picking out a specific object from a group, or for having one object do multiple things depending on the value of an instance variable.. or could be used as the health indicator for a baddie (that was in one of the tutorials). so instance variables do not replace globals or locals, they are different things.

    for those not comfortable with instance variables, you could hack your way through global variables but then you are really missing a powerful tool.

    R

  • solado, I feel your pain and I have to disagree with some of the other commentators. No matter how good I practice, I am not going to be as good an artist as some - just as I expect others will not be as good at coding, and so on. One-person game creation is challenging on so many fronts, a team with complementary skills allows each to play to their strengths.

    I do agree on one point, if you can recognise what looks good, then if you are patient enough you can create basic images, or construct them from things that you see online. At the moment I'm use placeholders that I've found online. they can't be used in the real-game as I know there will be license issues, in some cases I use a power-point generated image that I copy over. (powerpoint.. surprisingly useful).

    if I get to the point of wanting to distribute the game, I'm going to have to replace all the art with something consistent and I think in that scenario I will have to pay someone... but at that stage i'll know whether it's worth it or not.. so my recommendation... placeholders first, build the game, and at the end do the art.. it de-risks the process.

    for the artists out there, I've seen a lot post beautiful designs but lacking functionality.. they're playing to their strengths, you play to yours.

    R

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes, you'll need php/perl/anything else to query the MySQL database and then return the data. look up cgi scripts and you'll see lots of exaamples. you can then use ajax to query the script on your server and then parse the data.

    just be aware that you will find it awkward to test as you need to have a server and get around the cross-site scripting issus.

  • I'm using an ACER A1 tablet. it runs fine and on subsequent runs, the LUDEI flash screen popped up.. however that first run is the critical one.. so i'm not sure anything can be done but if you see a lot of quick uninstalls before anyone even did anything, then you might want to check that

  • nice game, well done.

    I thought it had crashed however as it took about 15 seconds to load up and the "powered by LUDEI" flash screen did not appear. nearly de-installed it on the spot.

    R

  • a link to a website would be nice... esp if your website worked..

    seems interesting

rho's avatar

rho

Member since 5 Aug, 2013

None one is following rho yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies