gibbon's Recent Forum Activity

  • Hi, I have 2 sprites, sprite 1 is positioned at sprites 2 position but with an offset. Sprite 2 can move and sprite 1 moves with it at its offset (so inside sprite 2's local coordinates if you like)

    However, I now want to scale sprite 2 (default center hot spot), therefore the "offset" moves too and i cannot figure out how to do it.

    Hoping someone better at maths than me can help.

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

    Basically, exactly like pinning to an image point behavior, but I want to change the image point X,Y by events (which you cannot do)

    Thanks

  • Hi, the manual (https://www.scirra.com/manual/144/user-media) clearly says the following:

    [quote:rti7yf63]The User Media object allows retrieving camera or microphone input from a user, including speech recognition, speech synthesis (also known as text-to-speech) and ambient light readings. This requires appropriate hardware being installed on the user's system, such as a webcam for a PC, a phone camera on a mobile, or a microphone.

    Yet I cannot for the life of me get the "request camera" to work on mobile (iPhone using safari) , it simple does nothing...

    Ive searched and found old and newish threads regarding the same issue, is there any work around or even a possibility of getting this working?

    Andy

  • Ok, maybe i don't fully understand that, if its not drawing to the canvas where are sprites ETC being drawn too?

    Either way, I just want to get the pixel color at X, Y from my project??

  • I am surprised to find no way to get the pixel colour of either the canvas or a sprite?

    Am i missing something or is this really the case?

    Thanks

  • Im sure all of you know it doesn't work in C2

    gibbon

    ...

    Just to add, my issue was regarding screenshots when using safari on iOS. I have manged to get it to work but what doesn't seem to work is the "invoke download" of the screenshot.

    Thanks

    Andy

  • Assume that space wasnt there, i didnt copy it over, i just typed it out and accidently put ina space.

    in the actually project there is no space.

    It simply doesnt work... If you could do it and it works then please do explain how.

  • I can't seem to work out what I'm doing wrong, I thought I would integrate some external JS functions but was having no luck. So, I have simply started a new project and tried this in both c2 and c3 but still I cannot get my JS to execute?

    I am using the browser to execute a simple function... "test link();"

    JS I have put in the index file AND tried in a separate JS file but simply nothing and nothing in the console???

    <script type="text/javascript">

    function testlink(){

    alert("test");

    }

    </script>

    Can anyone shed light on what I'm doing wrong.

    Thanks

  • HI, I was wondering if anyone knows a trick whereby I can open link in Safari, from my web app which is being used from "home screen"?

    All links open in the Web App viewer which is fine, but I want to make 1 open in safari.

    Thanks

  • Hi, I am having some issues regarding downloading the canvas snapshot on mobile.

    Before I ramble on, my ideal goal is to click a button and it download the canvas as an image to my camera roll (iOS).

    Unless I'm doing something wrong, invoking the download of the canvas snapshot does not work inside safari on mobile. What I can do is open the URL of the canvas snapshot and this works, and from there I can "hold down" on the image and "save image" as you would anywhere else on the internet. This I thought would work just fine, until I added my "web app" to the home screen for "full screen" viewing at which point when you hold down on the image, it simply doesn't ask to "save image"?

    Does anyone know a work around to how I can do this?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I have an iframe and ive noticed that when the iframe has focus, any input from the keyboard is lost?

    Is there a way around this?

    Thanks

  • Hi, I am trying to have multiple instance of a sprite, but then load different images into each at runtime?

    What im observing is every time it loads a different image, it changes ALL sprites to that image.

    How do I go about this?

    Thanks

  • Please read before hitting the link! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> Firstly being my first post ill say hello, im a "construct newbie", purchased it a few days ago. I am a full time web developer and c# programmer and a "semi-indie?" game developer with unity. However, for my 2D projects I have always used clickteams multi-media fusion but always found it a little dated, limiting but more so, difficult to "over come obstacles" from a programmers background.

    So I thought i would try out construct and found it simply ticks all of them boxes, you can tell it has been developed with "programming logic" in mind but makes it super nice and easy to develop with. It has 100% converted me and I really look forward to using it on any future projects.

    Anyway, to get to grips with construct I decided to create 2D minecraft style thing, I thought i would put it up here as I have no intentions to go much further as like I said, it was only really to help me get to grips with construct, plus there are hundreds of these games about!

    But im also just astonished at how well optimized HTML5 games from construct are, this is 640kb total size, its done with under 100 events (84 to be exact) and has only 12 sprites.

    You can mine & craft, place torches.

    Terrain & mines are seed generated (array based)

    Mud, Stone, Coal & Gold

    Inventory System (array based and dynamic)

    and that's about it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> Controls are in the start screen.

    http://andygilbertphotography.co.uk/noname/index.html

    Thanks

    Andy

gibbon's avatar

gibbon

Member since 18 May, 2016

Twitter
gibbon has 1 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • 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

13/44
How to earn trophies