saiyadjin's Recent Forum Activity

  • Ashley

    are these fixes going to see the light in Construct 2?

    Some of us still use it while it's supported, before we go C3, but fixing these issues (so we can deploy on Apple store) is of most relevance! I can't deploy a game that's bugged out on Iphone X.

  • Hi guys,

    i've posted a new tutorial about how you can set up your own environment and with a few commands build any game for any platform.

    The tutorial covers that for now (setting up the CLI and building your game), but i will expand it with some additional stuff like signing and aligning APKs, playing around with config files, adding plugins, etc..

    The tutorial is pretty big so I've put it in a zip as a download on the page (inside zip is a PDF file which is a tutorial).

    Hope you like it, and if you get stuck, or have questions, ask me here, or on discord (https://discord.gg/dZDU7Re)

    scirra.com/tutorials/9697/how-to-build-games-from-construct23-with-cordova-for-every-platform

  • True, but they don't have to do the same thing, and have the same name. That might be used as a feature, but also misused.

    In terms of debugging it would be easier to find out that you have a duplicate, and those who want both to run will pick any anyway.

  • ok, thanks Ashley

    I presumed this answer would be what I get.

    Is it possible to at least "upgrade" intellisense to show each function instead of distinct of all functions in the project ( when you have 2 functions named "Test", intellisense shows only once "Test")

    it's a bit confusing, at least in the debugging sense (i was looking for bug 3 hours before i found that i've accidentaly had the same function twice)

    that shouldn't be a big upgrade, or?

    zenox98 - sorry about that, i've followed the guidelines when writing first post, i guess i forgot about it

  • Ashley when do bugs get checked? it's been almost a week, noone took a look yet

  • C2 should prohibit having 3 "Open" functions. because when you do "call function" it shows only 1 "Open". But you:

    1. don't know which of the 3 you are calling

    2. have a shitty design of the game

    3. have a editor that doesn't recognize the difference between all 3 Opens because they're in global namespace.

    and basically fixing 3 fixes 2 and 1. Also , the editor could (like good editors Visual studio or etc) differentiate functions of the same name that HAVE parameters and those that don't, because that's actually 2 different functions then.

  • no, that's a bad design.

    you can basically have 3 active groups then with the same method, let's call the method "Open",

    when something Calls Open - it calls all 3 Open methods, though only 1 should be called (the specific one).

    this causes more problems, especially if Open method handles items:

    • if item doesn't exist it would cause an error
    • if all 3 are run at the same time it is a performance problem (even though 2 would not do anything for example, or you expect only 1 to run)
    • when designing your code - when you call method - it offers only one Open (but which one are you calling? )

    additionally, since functions are GLOBAL, there should be a restraint to have 2 functions of same name in GLOBAL namespace, that's like the principle of programming.

    if they could be separated by groups or etc, then it would be ok (like having a Class with a method), but you don't have.

    and finally.. i see no problem calling different methods different name... if you have a method that does something called from 3 groups - make 1 method with 3 calls (in each group 1 ). And if you have 3 methods that have the same name and are spread throughout groups - call them differently. For example Open1, Open2, Open3 etc.. (or a bit smarter OpenDoors, OpenWindows, OpenChest etc.. )

    that's called polymorphism and basically c2/c3 does that through families but it does it badly.. or doesn't even do at all. so yeah..

  • yeah, that's what i was wondering

    thanks for the answer.

    btw.. one more question -> if i have a 1920x1080 background image + bump mapping effect + normal map image 1920x1080 - what is the complexity of the rendering? is it going 3 times through render pipelines? or even more? that seems taxing a lot on GPU/CPU

    btw i've tried layout scaling to 1.5 and it had better performance than 1.0, are you sure it doesn't affect the fillrate?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi,

    this is mostly a Question for

    so, I was testing some builds and I noticed when I have a big layout like 1920x1080 and i run the game with window size 1920x1080 the game laggs on most devices. Reducing the Window size to example 640x480 it works nicer on every console.

    The question now is .. if I leave the window size as 1920x1080, but scale the layout by 1.5, which looks like it's zoomed in, does it affect performance?

    Is Performance better like when window is reduced (which also works like it's zoomed on a part of layout), or is it not?

    Can you explain a little bit more in technical detail.. why and where?

    shareX is nice

  • Problem Description

    Basically when you make a function for example named "TestFunction" and then copy paste it, you get anothre "TestFunction" instead of "TestFunction2"

    at runtime if we call "TestFunction", both the copied and original ones are called which is clearly wrong since there should exist in global namespace only 1 function of the same name.

    Attach a Capx

    https://ufile.io/6yymv

    Description of Capx

    When sprites collide you will see that both functions get fired at the same time, due to same name, which should be prohibited from making.

    The result should be 1 in variable, but it's 6 due to both functions firing.

    Steps to Reproduce Bug

    • Step 1 - create a function in event sheets that does something
    • Step 2 - copy paste the function - the name stays the same (bug! in global namespace there shouldn't be 2 functions of the same name)
    • Step 3 - rework 2nd function to do something else and call it from somewhere - both functions get fired (wrong!)

    Observed Result

    Both functions of the same name are fired, leading to bugs and errors in event sheet and runtime. Also only 1 is given as a choice at design time though there are clearly 2 functions existing.

    Expected Result

    I expect c2 to warn me of existing name of the function or when copy pasting to add a number or sth at the end to differentiate them.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer:YES

    Operating System and Service Pack

    Win 10 latest

    Construct 2 Version ID

    C2 r259, latest version

  • well Chromium is the only thing we can use for Mobile, so yeah.. that's the point Ashley

saiyadjin's avatar

saiyadjin

Member since 19 Jul, 2014

Twitter
saiyadjin has 2 followers

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies