bigproblem01's Forum Posts

  • So like:

    "Every 1 second --- random(1, 10)

    ___if X = 5    --- Spawn powerupONE"

    ?

    Could you also please explain why is "every random seconds" not the best way to go around, and how does it work in general (what might be causing the problems i'm having)

  • Hi Guys,

    I have this issue with the "random" expression. So I have some bombs and powerups spawning at the top of the screen and moving down (as if the player is moving and the mines are static).

    In my event sheet I have:

    "Every Random(35, 70) seconds ---

    Time > 60 seconds             --- Create powerupONE"

    and then in the separate condition

    "Every Random(35, 70) seconds ---

    Time > 75 seconds             --- Create powerupTWO"

    How I understand it, it should work in the following way:

    Once the time is more than 75, let's say 100, and once the condition gets checked, the engine chooses a random number between 35 and 70, let's say 41. So after 41 seconds it will create powerupONE, then it checks the next condition, Chooses a random number between 35 and 70, lets say 63, and creates powerupTWO in 63 seconds.

    What in reality happens is that these two powerups show up very very close to each other, as if the random doesn't really random so well. Like I have an impression that once the first condition picks a number, the second one picks a number by +3/-3 seconds, no more. Like they're randoming almost the same number because the powerups show up almost on the same level, when in theory, there is a whole 35 seconds space to choose from, the engine seems to choose almost the same number most of the time..

    At first I thought i'm tripping but I'm not.

    Does anyone have an idea how exactly does construct 2 random? Or what can be the problem here?

    Thanks in advance

  • hmm.. i've tried tons of stuff but this one slipped by, I'll give it a go, thanks!

  • Hi Guys,

    I'm having a little problem with Overlaps.

    From the picture provided, the last two blocks work. Meaning if Stick_R is not overlapping PIpe while Stick_L is, then it adds 1.3 to Energy_Height. Same Happens in the third block.

    However, the first one doesn't work. If both, Stick_R and Stick_L are overlapping PIpe, the system doesn't add 5 to the Energy_Height.

    Also, if I swap places between inverted condition and non inverted one, the block stops working properly, that is: if i put "while Stick_R is overlapping PIpe and Stick_L is not" then the system will add 1.3 to the Energy_Height even if Stick_L IS overlapping the PIpe.

    Sorry if that's too confusing, I tried my best to explain the problem as simply as possible. Anyone has any ideas?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Guys did anyone come up with the solution by any chance?

    I am having the same problem and can't find a way to fix it :\</p>

  • Yes, Facebook changes, for example it didn't need the SSL before, now it does, but as stated above, that's not the problem.

    I unfortunately cannot share the capx since this game was made for someone else and I don't have a right to put it like this. I'll post the links to the eventsheet pictures though.

    The LogIn one is the one it passes successfully, and then the Intro sheet is the one it gets stuck on. First I thought it doesn't preload the audio properly, so I removed the "All Preloads Complete" event. Then when it still didn't work, I removed everything and left only the following:

    ON START OF LAYOUT:   

    • WAIT 3 SECONDS
    • GO TO "MENU"

    And it still didn't work.. Besides this game works with any other browser I tested it on (Opera, Chrome, IE10) so I don't think it's the algorithm's fault. You can check it yourself by using this link: apps.facebook.com/484339361599491

    And keep in mind that the strange thing is, It worked before on firefox too.. it just spontaneously stopped and I can't find any reason why this is so.

    Ashley, yes I looked into the Firefox debugger but couldn't find anything useful :

    LogIn sheet (The one it passes successfully):

    postimage.org/image/e54nphfr1

    Intro sheet (The one it gets stuck on):

    postimage.org/image/9zri8moqh

  • No guys, once again no. SSL has nothing to do with this. As I said above SSL error shows up in the BEGINNING, before the game even loads, and the way to bypass that is to disable secure browsing. That's it. Whatever happens afterwards, SLL is out of the picture. It's just that the game gets stuck no matter the algorithm on the first layout, it just doesn't work.

  • none else has any thoughts? anything at all? :(

  • Kyatric, The part about non secured server is showing up in the beginning and the game won't start at all, so this way you know it's the cause. Then when you disable the secure browsing, it bypasses that error and is no longer a factor.

    I understand that FF might be stricter but the thing is that I tested this game on all those browsers 2 months ago and they were working fine (the only difference was that firefox was putting my font 2 pixels higher than necessary for some reason). Since then I tried on the same version of firefox that I tested it on before and it got stuck. Then I tried on the upgraded version and it was the same thing. Then (as mentioned above) I simplified the algorithm so there is nothing to get stuck on, and it still freezes on the picture like the game just stops... So i don't know what to blame this sudden change on.. I've even re-exportet and re-uploaded the game and it's still the same.

    I thought maybe something happpened since then (that i'm not aware of) maybe a change in construct compatibility or something, that is causing this?

    P.S. have you tried the link on both browsers and did it give you the same result?

  • Hello Guys,

    I've developed a small facebook game several months ago, and back then, when I tested it on Chrome, Firefox and IE, it was working on all three fine. Now, for some reason, it gets stuck on firefox. All it has in the "intro sheet" is to SET WEB FONT and PRELOAD AUDIO FILES. Then it has to wait for 3 seconds, fade screen, wait for 1 more and to go the next layout. I've tried omitting everything from the "intro sheet" and left only WAIT 3 SECONDS, GO TO "MENU" and it still gets stuck on the intro sheet.

    Here's the link to the game, it will work on chrome and get stuck on firefox. apps.facebook.com/484339361599491

    P.S. If it gives out an SSL ERROR you have to disable secure browsing on facebook (from ACCOUNT SETTINGS>>>SECURITY>>>SECURE BROWSING DISABLED) since the website this game is hosted on does not have an SSL certificate.

    Can anyone tell me the possible reason why this is happening? I didn't change anything in the game's algorithm since I've tested it on the browsers. Is there any update that might cause this or?... I don't know guys, I've tried everything I could think of and i'm out of options..

    Thanks in advance.

  • Thank you for responses guys,

    Before I posted this, the game was already complete (and I did it exactly as GeometriX said). I just preferred to do it the way I described instead of the way I did it. I found one link saying that it is possible with some formula but the capx is no longer there, I guess the link is old. So I figured it is doable.. otherwise, the workaround is there but I preferred the other one,

    Thanks again nevertheless!

  • Hello,

    I have been trying to set a mouse position to a certain coordinates but cannot find a good solution.

    I am making a game similar to those where you are a square in a maze and you have to pass through the level without touching the walls. So this square sprite is "set position to Mouse.X, Mouse.Y", so basically your mouse is the square. I need this square to be in the specific coordinates when the game starts (and also when the player dies and hits retry), that means I have to somehow make the mouse cursor appear where I want it to be, but I can't find any info on how to do that, any ideas?

    Thanks

  • Thank you very much keepee for the prompt and informative reply. I need to learn some of the stuff used in the eventsheet though :D

    works great, thanks again!

  • Hey people!

    I was trying to make something like this:

    • The player hits ENTER
    • types in password (ex: opossum)(the textbox will be hidden)
    • hits ENTER again to confirm
    • game does something

    I found this tutorial but couldn't understand it at all.

    scirra.com/tutorials/356/how-to-make-cheats-into-your-game/page-1

    Can anyone help me with the text box and how it works?

    For example when I set:

    Global Variable - Cheat (Initial value -1)

    On ENTER pressed >>> set Cheat*(-1)

    Cheat 1 >>> set Textbox focus

    Cheat -1 >>> set Textbox Disable

    When I press ENTER first, i can type in the text box, but after I press ENTER again it doesn't disable it. It works with F10 but not with ENTER for some reason.

  • Thanks for the picture Tobye, It looks easier than I imagined but it still would be wonderful if the solution I'm asking for existed

    7Soul, you mean even if you take the font out of your windows FONTS folder and use the css/font import solution it still shows up? have you tried it this way? With me, the solution provided in that tutorial works only in case I have the font in my windows FONTS folder