rho's Forum Posts

  • Problem Description

    I've noticed this since my last update to 233. I load images from URL into a sprite to save on download size. This has now become problematic. When I ran my programme using Internet Explorer 11, i got an error from the console complaining about a security error in glwrap.js (line 2127, col 4). In this scenario, if i disable webgl, the image loads correctly into the sprite.

    When I was trying to replicate this bug in other browsers, i discovered that I could not get the image to load into the sprite with webgl enabled or disabled.

    Attach a Capx

    http://149.157.140.178/testcase/capx/image_import.capx

    Description of Capx

    single sprite which loads an image upon startup. image hosted on a website of mine.

    sprite is rotated 10 degrees each second, just as a check to prove the programme is running

    Steps to Reproduce Bug

    • load capx
    • run capx

    Observed Result

    with IE11 without webgl, the image is correctly loaded

    with IE11 with webgl enabled, there is a browser warning of a security error in glwrap

    with Firefox 48.02 with webgl enabled and not, the image is not loaded

    with EDGE 38.14393 with webgl enabled and not, the image is not loaded

    Expected Result

    image of a yellow sun replaces black box and is rotated

    Affected Browsers

    • Chrome: (didn't test)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Edge: (YES)

    Operating System and Service Pack

    windows 10 professional (v1607)

    Construct 2 Version ID

    233 64bit

  • rexrainbow

    beautiful modules and a definite life-saver for a small demo i needed for work.

    i was wondering though if it was possible to put different color markers on the map

    The geomarker doesn't seem to have a color option for the marker itself.

    i noticed i could adjust the marker image by pointing to an URL, but i can't do that for individual markers

    have I missed something?

    thanks

    Rho

  • of course it would help if the link worked

  • so another way to do it is simply to say every 120 seconds, increment by one, using the system option. Add an upper limit of 100 and then it doesn't really matter anymore what the real time is.

    however this doesn't work if you are offline and you want it to recover between sessions, if that is what you're worried about

    if you're offline, do the following

    get the time from the last update

    get the current time

    get the difference

    stamina increase = difference / time-per-stamina point

    korbaach showed how to get the tie.

  • I know there are better ways to do it but one way to do it would be to have another image that is black everywhere else on the screen but is transparent in the middle... then you could just pin the image to your character.

  • I've been on/off working on something like this so well done on getting it working.

    one thing that is always worth considering is the configuration of your database. I've been using MySQL and using the default parameters I got a certain level of performance that was surprisingly slow. however I modified some of the parameters in the config file, around concurrent threads, memory usage, etc, and I got a factor of 10 improvement on the database response. There is a lot of stuff on the web but it can take a while to find it, but defaults are never optimum for anyone. And no, I can't say what the right parameter values are - it depends on what you're using the database for.

    of course this doesn't address the transport issues across the internet, but it definitely is a way of improving database performance.

    R

  • you should also try to say what the objective of the game is

  • it would be better to compare against a specific time from the device clock.. of course they could change that on you but it overcomes the issue of needing the app open. if you are sensitive about preventing user manipulation of the clock, use ajax to ping an internet-based time server.

  • perhaps you should look at containers... each time you create a container, all the objects appear. of course you may need to re-adjust them if they are different in any way

    I agree with gumshoe, you can use just procedurally generate your layout using events.. then if you need the same layout across multiple layouts you can just wrap it up in a function and call it. it's really not much harder than placing them on the screen manually and at least using events you can be very precise.

    R

  • [quote:2miepjqt] It's unlikely that a high-school student will learn how to code a software from ground up in school using traditional languages.

    actually in the UK primary school curriculum (5-12 year old) there is a requirement that all students must be taught a "real-world" programming language. I think it's harsh but I can see the point in that it is more valuable if they succeed.

    R

  • use the browser object and request fullscreen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • if this is the right demo, then if you use a random username and random password and try to login, you get to the login page without a token.

    ooops

    PS: something like this would be nice if works and if you can do it securely, I thought about it but couldn't figure how to do the encryption properly for sending to a remove server

  • I don't use C2 in teaching, but my feeling is that C2 is NOT a good learning environment by default. I can see how a good teacher could utilise it in a structured learning plan, but as a standalone tool, no.

    Why not, it's too forgivin in many ways - it enables quick and dirty coding and coding by hacking. I may be old-school but I still remember being taught that you should have your code written on paper before you ever touch a keyboard. Okay that was more decades ago than I want to admit, but formal processes, logic and structures are important which C2 doesn't inherently force on you... but then it shouldn't.

    So my opinion, C2 does not teach necessarily teach you to code well, it does empower you to start coding and doing something (like basic in old days) but C2 is hugely enhanced if you already know how to code well (whether formally taught or not).

    PS: just to emphasise, a good teacher can make anything work

    PPS: scratch is a much better learning tool for coding than C2

  • actually I downloaded via firefox and saved to a file and WIN10 smartscreen rejected the file as well.

    I can force it to run anyway, but it says it's an "unknown publisher".

    R

  • beautiful implementation, nice touches to a classic game

    also lovely to see 10-50K downloads already and 600+ reviews - even without a rate button.

    You're already doing much better than the vast majority of games, I hope you gain a good reward for your work.

    R