part12studios's Recent Forum Activity

  • Ok so this is what I ended up doing and it seems to work well.

    Because i have a custom mouse that tracks the mouse position it was difficult to dock the mouse because i didn't know how to directly tell the Mouse.X and Mouse.Y to move since I think this is outside of C2 control (the actual MOUSE indicates where the Mouse.X and Y are)

    So I made a variable MouseX and MouseY which the custom cursor would slave to instead of directly to the Mouse.X and Mouse.Y although the MouseX and Y are themselves constantly being updated by the Mouse.X and Mouse.Y make sense?

    Now for the real magic..

    I made an event that was saying "Touch is in Touch" + Left Mouse Button is down (inverted)

    This was set to destroy the mouse icon and also set a global var "MouseExists" which was set to 1 by default and set to 0 when the mouse was destroyed.

    then another event

    Mouse On any click + MouseExists = 0 this is set to create a new CustomMouse object.

    Seems to work nicely..

    so basically any touch event on the screen will kill the mouse and to get the mouse to return, any mouse click will create a new Mouse Cursor

  • Try Construct 3

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

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

    I posted a game to be published and it's been pending since March 31st.

    Has anyone had luck with taking Clay.IO into mobile wrappers to publish on iOS, Android or WP8?

    I tried to email Austin the guy who did the Clay.IO tutorials but those messages strangely sit in my outbox not going to him.

    It seems like a great solution but I can't seem to find anyone who has used it.

    One of the biggest blocks I ran into was simply how to manage popups.. if a user clicks the X i couldn't see how to capture that action.. and it seemed to be a click through to whatever is behind it which also introduces certain problems with layout, but more importantly if they click X when you want them to do something, it seems like there would be some way to be able to listen to that X being clicked so you can take appropriate next steps to get them back into the game.

    Thanks,

    Caleb

  • yea i haven't tried that approach. i'll give it a shot. sounds like it could work. kind of like an auto hide feature. I'll give that a shot!

    Thanks!

    Caleb

  • Hi there,

    I'm making an app for kids that has a custom mouse graphic. this works fine with a windows 8 machine with a mouse.. but the trouble i run into is figuring out a good way to hide the mouse in all the layouts.

    I would like the app to show the custom mouse when the mouse is in use and when touch is in use hide the mouse custom icon..

    i've tried a couple of things and it just doesn't seem to be working.. I just can't seem to find a good logical system that can detect if the user is using a mouse and clicking things or touching things.

    There must be some efficient / straight forward way to allow a mouse to be hidden if touch is used..

    otherwise what i end up with is this static mouse that appears wherever i touch..

    Thanks!

    Caleb

  • Ok so yea I went to a weekly event over at the Cambridge Microsoft office and worked with one of their evangelists who works a fair amount in C2 and we managed to figure out how to get what I need (which if course you've been saying, but I wasn't understanding completely).

    {

    "c2array":true,

    "size":[4,2,1],

    "data":[ [["Joke1"],["Punchline1"]],

    [

    ["Joke2"],["Punchline2"]], [

    ["Joke3"],["Punchline3"]], [

    ["Joke4"],["Punchline4"]]

    ]

    }

    Once i got those right and understood how to properly made a 3d array call I now have it working as I was hoping for. If anyone finds this and needs some help let me know and i'll explain what i understand (which is the bare minimum, but i think what i can do now with this will still be a substantially useful feature.

    Once again the C2 forum community has been amazing. Thank you so much everyone for your help with this! I'm sure I'll want to do more fancy stuff in the future with this, but for now i'll make this work!

    Sincerely,

    Caleb

  • ah yes i was going to say, the demo that was provided for me was a file.. but watch out to not click always allow.. it freakin' goes on a save frenzy.. had i think bout 80 files generated on my computer before i could end task!

    Caleb

  • sure thing.. here it is https://www.dropbox.com/s/dvfxbtsi4rk7d1j/PunTest.capx

    yea i just want the simplest way to call on text information and put that information where it needs to go. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Thanks!

    Caleb

  • lol i had the same thing happen.. i was going to share what i was experiencing with my setup.. which i'll post now.. just so you know.. but i'll read and respond to your deeper response once i read through it.

    -----

    yea i pretty much follow you but when i do Array,At(1) i get an error..

    here is what i have so far https://www.dropbox.com/s/tp0x6fgkskac5 ... 0setup.PNG

    this current setup results in this:

    click the button.. the text field shows "Joke1"

    if i make (0) a (1) i get this error https://www.dropbox.com/s/aiui94i2cu58297/error.PNG

  • a small update.. i tried to use Array.At(1) and got an error.. thinking i could access "Joke2" by calling on (1).

  • ok so i have some of this understood, but i'm confused by the example because it just seems like it has a lot going on that i don't need and i'm not clear where what i want ends and what i don't want begins.. because its kinda all woven in together.

    I have a json file that is imported in my test project.. i was able to display the the first value by using

    Array.CurValue and that's way cool.. it displayed in a Text object (standard text, not sprite font) "Joke1"

    but what i don't know how to do next is how to call on any of the values below.. this is what i have setup now:

    {

    "c2array":true,

    "size":[4,1,1],

    "data":[[ ["Joke1"],

    ["Joke2"],

    ["Joke3"],

    ["Joke4"]

    ]]

    }

    it seems like if i could just figure out how to access joke 2 3 and 4.. that would be all i need to know to be able to then use what i do know to call on random text from the list above..

    Sorry to be so dense lol, this is just very new to me and having never used sprite fonts before or arrays it's just made the sample project tougher to discern.

    Thanks!

    Caleb

  • awesome thanks! i'll keep at it with this new info! Thanks to you both for your help with new (and kinda confusing to me) subject

    Thanks!

    Caleb

  • ok i'm trying to break this down to better understand the syntax.. i need a joke and punchline that would go in different text objects.. so i imagine i'll need to make two json files.. is this the right syntax below?

    {

    "c2array":true,

    "size":[3,1,1],

    "data":[[ ["Joke1"],

    ["Joke2"],

    ["Joke3"]

    ]]

    }

    what is the purpose of "c2array"? is it a unique name? I don't cee "c2array" anywhere in the event sheets. If I import two json files i just want to be sure that c2array name is something that either needs to be unique or in common.

    also you mention X, Y, Z? i'm only used to that being used in terms of 3d coordinates. what would the x y and z represent in this case with c2?

    Thanks!

    Caleb

part12studios's avatar

part12studios

Early Adopter

Member since 24 Dec, 2012

Twitter
part12studios has 1 followers

Connect with part12studios

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

20/44
How to earn trophies