TRMG's Recent Forum Activity

  • Touch.Alpha gives the compass bearing, so you're using the wrong value here.

    Oh, sorry... Thought that would be the right one to use...

    So, what expression would I need to use? I also tried Beta and Gama, but neither of them worked.

  • How about a video on Arrays? It's not that intuitive for a first-timer and I think it'll be quite usefull.

    I, for one, didn't use them until maybe 3 months ago.

    The peer to peer or multiplayer online theme is pretty difficult to understand in the manual, that would be nice to see in a video

    +1

  • Problem Description

    When using Touch.Alpha to rotate a sprite towards the ground in real life/ the center of the earth (img bellow to explain what I wanted to happen better), the outputed value from Touch.Alpha is not correct/ consistet.

    (Higher rezolution link: https://www.dropbox.com/s/237oi0dw8bp2g ... n.png?dl=0 )

    This has happened on 3 phones from different brands.

    Attach a Capx

    https://www.dropbox.com/s/geeytfhct5juj ... .capx?dl=0

    Apk files already packed: https://www.dropbox.com/s/h37dturxjtevi ... k.zip?dl=0

    Description of Capx

    Sets the angle of the sprite ("Circle") to the device's Touch.Alpha. The user can also add 0, 90, 180 or 270 extra degrees to the circle's angle by pressing the buttons at the bottom left of the view.

    Steps to Reproduce Bug

    • Instalation: Open and install the .apk file that works based on your device's processor. if the device is based on an Intel processor, run the file that has "x86" in the title; if it is arm-based, run the file with "arm" in it's title. This can be determined by serching for the device's specifications, or It can also be found trough trial and error, as the wrong .apk file will not install. The device may prompt you to turn on unknown sources. It can be done from settings - security - unknown sources and is required for any .apk file that does not come from a known source (ex. Google Play).
    • Usage: Once the app is installed and opened, rotating the phone on the Z axis should rotate the sprite. If the ball is not orientated correctly, you can add an offset to it by pressing the buttons in the lower left corner.

    Observed Result

    The sprite rotates when the phone is rotated and points towards the ground irl when held vertically, but if the phone is laying on it's side (horizontally), or in any other orientation, the sprite does not point correctly.

    Expected Result

    When the phone would be tilted, the sprite would point downwards relative to the ground in real life (like in the images from above)

    Affected Browsers

    Not applicable, as it is a standalone application.

    Operating System and Service Pack

    Windows 10, service pac 0, I belive (In pc - properties, under windows version it only said "Windows 10 Pro")

    Android V. 6 and 7 (Xperia z3 and Samsung S7)

    Construct 2 Version ID

    R244

  • lennaert

    Awesome! I used to replace the "www.dropbox.com" with "dl.dropboxusercontent.com" but this way is much easier!

  • > darn, i dont have the newest version of Construct... :/

    >

    The newest stable release is HERE: https://www.scirra.com/construct2/releases/r244

    There should be no reason for you not to upgrade to this version.

    It's usually best to stay on one version of a program till you finish a project, even if the update is a stable release.

    can you please describe howd you solve this problem?

    That would be neat! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Yup, here you go:

    So you'll need 3 objects (1 "Item" sprite, 1 "Slot" sprite and 1 "Inventory_Array" array)

    The "Item" sprite will have "Item_ID", "LastX" and "LastY" instance variables and the "Drag and Drop" behaviour:

    You'll need to add an animation frame for each object you want to store in the array:

    The "Slot" will only have the "Slot_Nr" instance variable:

    This is how the layout looks:

    An finally, this is the code (with comments):

    Link: https://www.dropbox.com/s/vihkr5qsl3iq3r8/Code.png?dl=0 (Too big for a photo =D)

    Let me know if you didn't understand something.

  • Ashley Would you mind helping me with this?

    EDIT: Solved thanks to Johncw87 :

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...bump

  • Hey there, I'm trying to make this circle point downward relative to the world when tilting the phone from side to side.

    Img:

    (Link: https://www.dropbox.com/s/237oi0dw8bp2g ... n.png?dl=0)

    I tried using Touch.Alpha, but it isn't working on my phone... It rotates, but it isn't smooth and at certain angles, it refuses to rotate... It also flips 180 degrees when the phone is tilted on it's Y axis too much...

    I made this quick .capx if any of you want to try it and see for yourselfs (It can switch from Alpha, Beta and Gama, and can add 0, 90, 180 and 270 degrees of offset.)

    (Link: https://www.dropbox.com/s/geeytfhct5juj ... .capx?dl=0)

    So, what am I doing wrong?

    Thanks in advance for the answers =D

  • The actions you mean ?

    I suppose you have an additional condition.

    Just destroy the chains as in

    event 18 (on a new tap)

    and set the anchor off screen as in

    event 18 (new tap)

    event 22 (when the chain would go trough the player)

    event 23 (when the chain would be to long)

    Great, thank you!

  • Have fun coding that !

    Hey there, couldn't figure out how to destroy/reset the chain.

    What are the events that I need to copy?

    Here are the events:

    (https://www.dropbox.com/s/6y365wtg03l3l ... s.png?dl=0)

  • Here's what I meant by "dummy" family.

    https://www.dropbox.com/s/ojuggbnp8zeh5 ... .capx?dl=0

    It's far from perfect but it's something to build upon. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    I see, thanks <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

TRMG's avatar

TRMG

Member since 4 Dec, 2015

None one is following TRMG yet!

Connect with TRMG

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies