part12studios's Forum Posts

  • holy crap that's awesome! ty!

  • interesting suggestions. i'm not sure how to use that plugin but i'll look into it and oosyrag yea that's not a bad quick/dirty idea either.

  • is there a way to set the actual browser size? I'd like to be able to honestly test screen sizes and it would be great if i could toggle between 640x1136 and 768x1024. Canvas size is something.. but that doesn't impact the actual viewport size.

  • ah ok viewport! that's what i need. yes already i'm doing some testing and i can see viewport will move things around based on current size which is just what i needed. this is a big help!

  • oosyrag i have not tried that but it doe sound interesting.

    ultrafop thanks i'll experiment more today.

    I did do some realtime checking "if layouthight is < x" and that didn't seem to work..

  • hmmm yea even in a simple situation it works the same.. it's scale inner that seems to be the issue.. something about how it works that doesn't respect anchor..

    https://dl.dropboxusercontent.com/u/6999242/capx/anchor%20test%201.capx

    open it.. run it.. drag around your window size and watch the purple box drop off the bottom of the screen.. i'm trying to prevent this from happening..

    i'm trying to make a portrait game look full screen on ipad and iphone.. I tried scale outer and it seemed to be much weirder..

  • bump.. seriously.. why would the item that's anchored to the bottom of the screen and set to the bottom of the screen, not move with the bottom of the screen? it's like it's out of sync with it? how do i get an object to stay locked to the actual bottom of the visible screen? because anchor and pin are not working.

  • Hi everyone,

    So I have this project that I want to try to get to be full screen on ipads and iphones, but the 4:3 to 16:9 issue is a challenge..

    I've made a project that is portrait at 640x1136 (iphone 5/5s) and i'm using scale inner. for the iphone it looks perfect.. and using pin/anchors I thought ipad would look good but it seems to do something weird.. as i vertically compress the screen.. the object i have pinned to the button of the screen isn't moving up as I would think it would.

    I'm not sure why.. this is what i see.

    this looks perfect!

    not so much..

    in my mind i feel like the bottom of the screen is the bottom edge of the browser and as I resize the window i would imagine that it would stay anchored to the bottom of the screen but it doesn't.

    just so you know more about the behind the scenes.. the white box has all of those other objects pinned to it.. so the only object i'm trying to anchor to the bottom is the white box.. everything else moves with it..

    there must be something simple I'm leaving out.

    Thanks!

    Caleb

  • korbaach dude you are the man. If I can secure this gig I will PM you. That's is brilliant!

  • yea that's great to know.. sometimes it's just good to know "hey you can't do that with C2 out of the box". man that's so badass..

    ok so in terms of scrolling to a position.. are you able to set a scroll bar position? i'm totally asking this as a novice in this regard. I wonder if the means in which you're able to scroll too based on the bar position couldn't be hijacked.. even if the result was not pixel perfect it would probably be close enough.. like if there were 100 words in the text field.. if the word you find is word 50 you know roughly 50% down? a little math needed if the number was like.. 250 words.. or 41..

    btw, how are you posting animated scripting events like that? that is also pretty awesome

    Thanks!

    Caleb

  • wow i got a chance to peek at the example.. you're using actual javascript.. that's awesome. i would have never been able to pull that off.. i may explore other ways to get a similar result, but this is still a fascinating and very helpful to realize how a solution could be found.. I have a developer partner that I might be able to lean on to help with JS coding to further improve the behavior in my case, but this example sheds a ton of light.. I was thinking i could do it purely through C2 expressions / actions.. but that's not the case.

  • korbaach and newt thank you both. That's super helpful! I'll explore this and see how far I can get with it. I feel like understanding how this example works might help give me ideas of how to address other features!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ok yea i see what you mean about estimating a position..

    any ideas on how i should properly use that expression to search text?

    my question is:

    RegexSearch(String, Regex?, Flags?)

    I get the String value.. in here i can use "information.text" which would be the text in my information object (a text box).. but what do they mean for me to put in the regex and flag fields?

    Also thank you so much for your insite! This is tremendously helpful.

  • Also I saw:

    find(src, text)

    this seemed possibly promising as well but again i'm afraid i don't understand how to frame an expression like this to do something meaningful with it.. like say i did a search for the word "hammer" and the text i search is very long.. maybe 4-5 mobile phone screen sizes of information and the word hammer appears 1/2 down.. naturally i'd want the screen to scroll down to that point so a person can quickly get the information they need.

  • newt ok so i have a project setup.. the best i could come up with is to do a system/compare two values.. but i'm not sure what else could be done.. my initial test.. i'm able to use a text box.. enter text.. hit a search button which saves that value to a var..

    my next step would (i think) be to try and do a compare two values.. the text from the information textbox (i put a big speech in there) to the text from the global variable.

    There must be some other step in the process i'm not following.. part of the challenge too is not knowing how to actually use Regex.. i see it on the link you shared:

    RegexSearch(String, Regex, Flags)

    Return the index of the first character in String where a match for Regex with Flags could be found.

    i assume the String they want would be the information.text that i have in my textbox object.. but what is the Regex thing they want? what are the flags? those concepts are foreign to me in this context.