Aphrodite's Recent Forum Activity

  • In some cases It wouldn't have, like this one:

    I just dragged otherValue outside, and everything stayed, because the expression still works

  • I know how to use variables, but thanks.^^

    It was just an example. The huge block of code already was in a (complex) function. I first used local variables to safe ram but then realised, that I needed global variables instead. Because no other event could acces that variables. It was a careless mistake but this can happen if you are not an experienced programmer. And this is constructs target group.

    So it was just a suggestion as it would sometimes make things easier, if you make a mistake.

    You should be able to drag them out of the function I think

  • Hello I would have a feature request.

    I spent about 1-2 hours today by replacing variables in complex blocks of code by new variable types.

    Example:

    x0+x1+x2+x3... (setting up huge blocks of code involving variables)

    ,,Oh wait, this does not work. I have to use a global variable. Or a local one instead. Or maybe better to use an instance variable. Oh noes I have to change hundreds of lines of code which contained the old variables. D:"

    This was the scenario I had about 2 times today. It would be really usefull if construct had a feature which would allow the user to replace a variable and all it's references with a new one. Or a feature to find and replace specific peaces of code in an event sheet.

    I suggest you organize your code to have an easier time editing this.

    Also global variables are really something to use only when needed, I'll always try to have a local static variable or instances variable first.

    Also if you have complex calculation, I'd recommand using functions so the calcul is written once on the entire project, but called multiple times (so you only have to edit once), It'll also be easier to read.

    (For your suggestion to find and replace, there is a research function for the events sheet, but I think it is for non-free versions only)

  • Hey guys, I've been wanting to make more games using construct 2 but am having trouble coming up with original game ideas...If you don't mind, could you post one? Thanks!

    Personnally I like to think about something like:

    -What do you like (not in games)? >IceCream

    -Which genre are you targeting? >Platformer

    -What can make what you like disseapear? >Sister ( ;_; ); heat; dogs; etc..

    -How could that goes into a game? >Icecream cones trying to escape from the frezzer to the north pôle while avoiding people and animals, and staying cool enough on the way

    You can of course think about other questions to be more particular.

    PS: of course you can use the icecream cones idea if you want

    tomsstudio : If I am not mistaking, reading the manual actually gives you rep (and since your are doing this, I expect that the manual will be helpful ^^)

    I am not sure I could help a lot with testing, I have a little mobile game right now, which adapts itself to the aspect ratio, and a weak phone, so I should be able to test that

    (PS:if you are targetting android devices, which version of the OS?)

  • From what I've understand, mobile browsers and audio arent the best friends, but I don't have a lot of details, I think I understood that:

    -Some browsers can only start to play audio after the first touch (maybe only on touch input?)

    -Some do supports the web audio API and others don't, so in some cases, not a lot of sounds can be played together

    Is there something else I should be aware of?

  • Also we need a better forum structure on support, now is just a mess tbh. I recommend a few sticky topics which will help a lot in How do i?

    Example:

    a) Best practices for html 5 web development (performance and proper coding structure)

    b) same but for mobile

    c) same but for mobile web html 5 (this is one is a pain) here are some looses in performance sometimes that make no sense. Of course its mostly related to young browser and canvas2d, but sometimes i feel lost and there very few answers on the forum, beside the common sense tips. Example: Canvas manipulation on Safari doesnt work well (or maybe i am doing it wrong), no full screen trigger on Safari, tips on how to fill the browser screen, stuff like that. Performance tips and so on.

    Perhaps also something that the community itself can edit in complement with that(like a wiki, maybe less formal), and also maybe a topic with people that are willing to test on their devices to eventually help people

  • Thanks for you quick awnser ^^

  • I was wondering if the low quality setting shouldn't be off only on smaller displays than the window size, since I think it will take more memory than high quality for nothing in that special case (images aren't resized at a lower res in this mode)

  • time expression is clocked in seconds from the start of the game.

    OnStart of game

    var time_start;

    var time_end = time + 60;

    durring game play

    if(time_end < time) do end game stuff

    Please don't use dt as part of anykind of timing measure. dt is used for animation to keep animation to time step the same. As an example

    move 100px per second.

    object.x + 100 * dt; this will break up the 100 to that of only a fraction of the 60fp1second. However dt shuoldn't be used a timer keeper as dt is not really a timer.

    when you increase a variable each tick by dt, it'll be incremented of 1 each seconds, this is what defines dt, so it works, I agree however that the time expression is better in that case

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I feel like I'm making too many posts haha but the answers I'm after weren't in the manuals.

    Simple concept. I want to make an enemy and then be able to ctrl+drag clone them all over my platform for really easy level building but the problem I'm running in to is they all have the same global variable and when one dies they all die.. Hero's best case scenario but programmers worst nightmare.

    Any thoughts?

    thank you.

    https://www.scirra.com/manual/73/instance-variables

    Instances variables are what you are looking for, Just create it for your ennemy, and use it instead of a global variable

  • 7Soul well it's not too hard once you know the formulas. I copied them off someone else in another thread

    I might add:

    dB = -log10(100 / Scale) * 33.2 = log10(Scale/100)*33.2 I prefer the second one since you see directly that scale and dB have their increase and decrease related

    also You forgot one thing.. 0, you have to take care of the 0%, since I think it is possible that C2 does a math error (log(0) does not exist)

    EDIT: from where does that 33.2 comes from, I've always wondered?

Aphrodite's avatar

Aphrodite

Member since 20 Dec, 2011

Twitter
Aphrodite has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies