Sisyphus's Recent Forum Activity

  • zenox98 what the function of >> int(random(5)+1 <<

    can you describe it please?

    System -> Set Value -> your variable, round(random(1,yourlayoutcount))

    Xenovia what the meaning of yourlayoutcount ??

    [quote:mr6cgc34]int(x) - Convert the float or text x to an integer (whole number).

    Then, random(5)+1 will add 1 or 5 number to "Layout" string, but that's not working, " " is missed, the correct string is

    Go to Layout (by name) > "Layout"&" "&floor(random(0,6))

    or

    Go to Layout (by name) > "Layout"&" "&int(random(5)+1)

  • Upload a capx example please.

  • I hope i get you right, you got a 1500 words of text(sprite font) in your project? Is it static or you change it through events? Yeah, and spritefont not check for collisions.

  • I implemented the tilt function into my game, but it's not working correctly since my game orientation is landscape

    The tilt detector thinks that my game is in portrait orientation

    So how to pass the value as landscape mode?

    Try different angles on gamma or beta.

  • I can't figure out how to make a 3D game. do you use endless layout? if not, then what?

    As the index page said:

    [quote:vb0dvrno]Construct 2 is a powerful ground breaking HTML5 game creator designed specifically for 2D games. It allows anyone to build games — no coding required!

    It's a 2d game engine, possibly you can create 3d games in it with Q3D plugin. Maybe some other plugins too.

  • Sisyphus I compiled it via Cocoonjs and it works very well!

    Thank you very much bro, I owe you one

    Glad to help

  • Sorry my english is pretty weak.

    [attachment=0:2wk5i7d3][/attachment:2wk5i7d3]

    Here, i made a little example of that, try to tilt your device left and right, i just try that on cocoonjs 2.0.2.

    Btw, is there any way to test tilting on browser?

    Only if you had accelerometer in your device, i don't know any other way. Maybe someone else know how.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How to move an object by tilting the phone?

    I use Cocoonjs and exported it to APK

    Thanks

    Choose "Touch" > "Compare Orientation" > Select Orientation "beta" or "gamma" (beta - front to back tilt, gamma - left to right) and set the tilt angle, then just add sprite > move at angle that you need, or where you need to move it.

  • I guess you could that with a function.

    Both of these functions work, use the one that suits you most !

    You could even add another parameter to set a specific value to those keys, instead of the default 0.

    Now i really believe that construct 2 can make everything, that's clear magic

  • How can I add multiple keys in a single line with the dictionary object?

    It works fine if i have separate lines of code like in the sample but is there a way to add new entries on a single line?

    ie.. (Inventory ---- add key "coin,wood,mobdrop" with value 0)

    I don't think that it's possible. At first i want to say that you can possibly use "Add key" > ("wood" & "coin" & "mobdrop"), because nothing except "&" can be used in strings, but then i try that on my own and it doesn't work, the string like that just adds a key "woodcoinmoney", that's how "&" works.

  • This does happen with the System object in a new project if the window is at a certain size. I don't think it has anything at all to do with third party plugins, I think it's an issue with Windows' display of the list control.

    This doesn't happen only with a system object, all objects affected, and all projects. I try to resize window but it makes buttons "blinking", lol.

  • Thanks It works now!!!

    You're welcome! I saw screenshot of your event sheet, better use sprite font instead of text object, using text objects can kill performance.

Sisyphus's avatar

Sisyphus

Member since 16 Jan, 2014

None one is following Sisyphus yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies