cjbruce's Recent Forum Activity

  • To Ashley and the Ejecta developers,

    Great job getting this up and running. I'm in the process of cleaning up a game for market, and iAds work great!

    I know Ejecta doesn't handle HTML at all, so I've been working in Xcode to put a UIWebView at the top of the page to put my own HTML in. Unfortunately, the Ejecta Objective-C code is old-school (non-ARC) and this hobbyist programmer is struggling to keep up. Are there any Ejecta Objective-C developers out there that would be willing to add a "show HTML" action at the top of the page, just like currently exist for UIBannerViews? I was thinking something where you could edit the innerhtml, just like in the iFrame plugin?

  • The determinant is now computed correctly. The problem appears to be that loopindex("x") is in the global scope. In other words, if you recursively call a function with for() loops in it, it will always reference the first time you called a loop of that name. The solution was to uniquely identify the loop with a different name in each iteration.

    In this case, instead of calling a for() loop with the tag "i", I called the for loop with the tag "i"&n, where n is the current size of the matrix I am working with. This is unique for each level of the recursion.

    See the attached image for the solution.

    Ashley, is recursion supposed to work this way? Or am I missing something?

    [attachment=0:1ayng80n][/attachment:1ayng80n]:

  • [attachment=0:3vh4bsl5][/attachment:3vh4bsl5]

    So here is my most recent attempt. It looks like the value of the local variable "determinant" is being reset inappropriately in a recursion loop. Maybe a javascript variable scope issue?

  • Picking problem is solved with the "System -> Pick All" condition. Thank you Yann for the excellent picking video!

    On to other troubleshooting...

  • So I've tried the following so far to recursively compute an array determinant:

    1. I've created an object called "array" in the layout. On start of layout I set all of the values for each XY.

    2. Each time I call the "computedeterminant" function, I create a new, smaller array of (n-1) x (n-1) for the next step in the recursion.

    3. My plan was to pick a value from the smaller array, set it to a temporary variable, then plug that value into the bigger array.

    It looks like my smaller arrays aren't getting filled properly because I can't pick the original by UID.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am in the process of trying to build a DC circuit simulator similar to the excellent one available at phet.colorado.edu. In order to make it work, I will need to do some matrix manipulations, specifically, computing the inverse of a matrix of size n x n and matrix multiplication.

    Has anyone attempted to do this in Construct 2?

    Methinks an extension to the Array plugin would be really cool...

  • When using PhoneGap, do users lose all of their saved data when they update an iOS app downloaded from iTunes?

    I am hoping that anything stored in either Webstorage or the "Save Game" feature in Construct 2 will be preserved whenever someone downloads a new version of the app from iTunes, but I'm afraid to build a whole game only to have a bunch of upset users when they update the app. I know when I build an app in Objective C I have to go through some hoops to get the Core Data store to migrate correctly.

    The other option is to mirror the data to an external server/database, but I want to avoid that expense and complication if I can.

  • How about turn-based tic-tac-toe?

  • I have been having a problem running the div plugin on the 4th generation iPad (retina display) in Safari where all of the divs jump randomly around by 1 or 2 pixels. It makes for an interesting effect, but I was hoping for the divs to be perfectly stationary. It doesn't appear to be a problem on my computer (running Chrome) or my phone (Nexus 5 running Chrome). Unfortunately, I am creating the app for school where we use iPads, so this is kind of a go-no-go for me.

    Has anyone else seen this problem? Is there a setting I am missing that would get rid of the jumpiness?

    After playing around with things a bit, the shakiness happens when the div origin straddles multiple pixels, rather than sitting precisely at a coordinate. The problem seems to occur most frequently on the retina ipad running iOS 7. I was able to replicate it by manually scaling the desktop browser, but it was much harder to replicate on the desktop. Is there a way to force the div plugin to round its position to the nearest whole number coordinates?

  • We have been using C2 for almost a year now in school. As physics teachers, we love its ability to rapidly prototype simulations and activities for our students. Check out our Construct 2 page at:

    conantphysics.com/construct2

    We have made several attempts to integrate Construct 2 into the curriculum, but have found that it is very difficult for students to shift gears toward the creative troubleshooting mentality necessary to create something in Construct 2. Not that it isn't a worthwhile effort, but it takes most students a lot of time to get to the point where they are comfortable with the tool, particularly event sheets. Because we also have a fairly tight physics curriculum to follow, it is difficult to find the time necessary for the kids to explore and create in Construct 2.

    One of our teachers teaches a second-year physics course where he is free to do pretty much whatever he wants. He spent two weeks with his students and found that most of them really struggled with breaking down simple tasks. A common question chain would be something like:

    Student - "I want the car to go. Where do I tell it to act like a car?"

    Teacher - "When do you want the car to go? You will need to be more specific."

    Student - "I want it to go when I tell it to go."

    Teacher - "The computer can't listen to your voice. You need to pick a condition."

    Student - "I want it to go right away."

    Teacher - "Let's try 'on start of layout'"

    ...observe that the car moves right away...

    Student - "That isn't what I want. I want it to go when I tell it to go."

    Teacher - "Do you mean that you want it to go when you touch it?"

    Student - "Yeah."

    ...rework so the car moves on a touch event...

    Student - "That isn't right."

    ...and so on for most of the students...

    Not a lot of physics thinking taking place here, but a whole lot of troubleshooting and systematic thinking. This is what the students really struggle with. As a teacher, the challenge is breaking everything down so students can learn to be self-sufficient.

  • Problem solved:

    scirra.com/forum/plugins-pode-html-pack_topic51522_page1.html

    Pode's div plugin does the job perfectly. Thank you Pode!

  • Pode,

    Thank you so much for maintaining these amazing plugins! I think the div plugin is going to save me a ton of work to create an app I am working on where I need to handle html formatting tags (superscript, subscript) as well as html character codes (degree, theta).

    I have been having a problem running the div plugin on the 4th generation iPad (retina display) in Safari where all of the divs jump randomly around by 1 or 2 pixels. It makes for an interesting effect, but I was hoping for the divs to be perfectly stationary. It doesn't appear to be a problem on my computer (running Chrome) or my phone (Nexus 5 running Chrome). Unfortunately, I am creating the app for school where we use iPads, so this is kind of a go-no-go for me.

    Has anyone else seen this problem? Is there a setting I am missing that would get rid of the jumpiness?

    Thanks again for everything!

    -Chris

cjbruce's avatar

cjbruce

Early Adopter

Member since 25 Apr, 2013

Twitter
cjbruce has 4 followers

Connect with cjbruce

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies