EpicRaid's Recent Forum Activity

  • Hello,

    I tried resetting the dialogs but that didn't work.

    Why is this happening? And how to get it back?

    Thanks.

  • Hey!

    Thanks for your support.

    I learned a lot of new (function) stuff today! :)

    So yeah, on my iPhone it works perfectly. The TimeText and Clock appear fine on iPhone. But that's probably because you can't drag 'outside' the screen. It will just end at the screen and store that TouchX and TouchY.

    I copied and pasted the code you wrote in your sample. The only thing I changed were a few minor things in the actions, but not conditions.

    Do you have any ideas where to look for to solve this last issue, or how to debug it.

    My project is portrait shaped, and has these settings:

    Hey man, you've been of great help, I really appreciate it!

  • Hi,

    Thanks so much for your help!

    I'm close to getting it to work in my project.

    The only time it doesn't work, is when the end swipe is outside the left or outside the right of the screen.

    The top and bottom seem to work fine.

    Any ideas?

    Thanks.

    P.S.

    I tried the picking with the function, but it doesn't even display the Compliment image:

    ::Edit:: The TimeText/Clock display seems to work fine on mobile. Probably because you can't drag outside the screen.

  • Try Construct 3

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

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

    Yes I have only once instance of TimeText and Clock.

    The width/height of TimeText is 122,41 and of Clock 35,35.

    This is what I have now:

    I thought I was already adjusting the coordinates of TimeText and Clock with the Viewport actions.

    Or is there a better way to do this.

    Thanks.

    P.S. How can I pick the object created in the called function? If I want to make any changes to that object? I did some searching but found the examples too difficult to understand. The manual, as most of the time, is not very helpful.

  • Hi AllanR, thanks for your elaborate response! Did you mean as such:

    Unfortunately, the TimeText and Clock are still displayed outside the screen, or half outside, depending on where the touch ends. I'm basically trying to achieve a 'Bound to viewport' behavior.

    So, it will always display the Clock and TimeText inside the viewport.

    I added the 'Wait 0 seconds' action just before "SetTimeText" function call.

    By using the latter action do you mean I can 'take along' the pickeing to any new function?

    I still don't understand why it didn't work at first, I mean, I thought C2 runs the entire event sheet top down every tick(?), and that the function "TimeScore" first does the 'top' actions, and then moves on to the 'sub' events, also from top down, then when the whole function event 'TimeScore' is finished it will move on to the next 'top' event line.

    Thanks again, you're of great help.

  • OK thanks. I did mean that I don't know how to log a function.

    If I write:

    & SetTimeText

    C2 will tell me that it's not an expression.

  • Hey,

    Yeah I already compared them. I used Goldwave to export from .wav to .m4a. The .m4a sound effects sound exactly the same as when converted by C2. So it's no difference.

    I find this issue really puzzling. It's almost as if.. I don't know.. these specific effects are 'out of range' when converted to .m4a and played on iPhone.

  • Hiya,

    Thank you for the explanation.

    How do I watch functions though to see if they are called? I see the Function object in the left list in Debug mode but no functions themselves.

    OK, so is this correct nesting of the "SetTimeText" function to run regardless?

    As for the log, this is what is displayed for the ViewPorts: Left -798.8417618271 Right 1338.8417618271 Bottom 960 Top 0

    Funny thing is the Top and Bottom viewport are 960 and 0. While the Left and Right differ, when I resize the browser window for example.

    Thanks.

  • Thanks for your reply.

    I put the function Call "SetTimeText" below the four viewport conditions so it wil run regardless, but it's still ignored. I want to try your debug suggestion but I don't understand what you mean by all that.

    How do I do that debug output to an event?

  • OK so apparently some particular audio effects aren't heard on iPhone's because the sounds are distorted. On Android these audio effects work perfectly. I suspect it has to do with the converted to .m4a files by Construct 2.

    Is it possible C2 is the cause? When I play the .m4a files from the exported project on a desktop PC they also sound distorted, slightly less than on the iPhones.

    Anyone got any ideas?

  • Hello,

    I'm trying to replicate a 'Bound to viewport' behavior. Shame C2 doesn't have it by the way.

    So I've got this code:

    But the only thing that is happening is that the Clock and TimeText are created at the LastTouch coordinates. The rest is completely ignored! Weird things happen as well, like the angle of motion being ignored.

    Does anyone know what I am doing wrong here and how I can fix it?

    Thanks!

  • I used "n" and it works perfectly. Just needed that simple loop. Thank so much!

EpicRaid's avatar

EpicRaid

Member since 13 Feb, 2015

Twitter
EpicRaid has 17 followers

Trophy Case

  • 9-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
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies