dpmontes's Recent Forum Activity

  • Here's an example program I just wrote.

    dropbox.com/s/b6aw20tv1c3c0u8/Slide%20Show-g344ldn7s4vd.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks so much! I knew it was something real simple like that!

  • I'm not understanding what your goal is. The following is my best guess of what you are wanting but some of it I've just made up because you haven't included much detail.

    You have two balls that are on the screen. Ball A and Ball B. Both balls are in a fixed location on screen. Ball A is rotating and Ball B is stationary. When Ball A spawns on the screen at some random location, Ball B must be at least 100 pixels radius away from Ball A.

    If this did not describe what you want, then describe in detail what you want just like I did.

  • My goal is to upload a .csv file into the local file folder of my game. I want to then access the .csv file and store the values into strings which I will then manipulate with tokenat(ect).

    I've tried searching the forums and came across this plugin

    scirra.com/forum/plugin-csv-csv2array_topic46096_page1.html

    and he says that I can use AJAX to get .csv string from external file.

    So I've tried using the AJAX object but haven't had any luck. I was going to make a .capx but I have no idea how to use the AJAX properly to accomplish this, even after reviewing the AJAX object page in the manual.

    scirra.com/manual/107/ajax

    So if anyone can point me to a real basic example showing how to get from a locally stored .csv file to storing the values in a string, that would be great. Thanks!

  • I'm wanting to create a program for use on my Android phone. This program will need to have a list of different items that I can use swiping to sift through and then pick one item with a touch.

    I'm working on the swiping interface right now and I included a .capx. It seems to work ok on my computer but seems a little more buggy on my phone so I'm wondering if anyone can improve upon it or if there are any other good examples out there?

    dropbox.com/s/4g806z50302o245/touchGame.capx

    I'm also wondering if there is a good scrollable list example program? I know about the scroll-to feature so I could probably make a program with a scrolling layer to hold the items and a static layer to hold the window. The way I did it was to just change the y-location of the text itself. Ideally, my program would be slightly flexible to change the size of the text items based on the size of the screen.

    Also, to run a Construct 2 program on my Android phone, does it have to run in the browser or could it theoretically be uploaded to the "Google Play" store and downloaded like a regular app?

  • If I have an object of Car and I have a blue instance and a red instance and I want to compare the cost of each car to the other, is there any easy way to do this?

    I would do it by "Pick instance with UID" which will isolate the red car and then store the Car.Cost into a global variable "tempCost". Then I will have to again "Pick instance with UID" to isolate the blue car and then compare the "tempCost" variable to the Car.Cost.

    Is there a way to more directly compare Car.Blue.Cost to Car.Red.Cost? Thanks

  • Thanks, that's an easy fix!

  • I'm trying to get my program to efficiently pick random instances of an object. Everytime it picks a random instance, I want that instance to be removed from the next round of picking.

    I thought I could do this by destroying the instance after it has been picked. To my surprise, destroyed instances are still being selected when I use the "Pick a random (object) instance".

    I have a simplified .capx to illustrate my problem. My goal for this little example is to have 10 of the red squares destroyed and only a single "X" appended to that square's text box.

    dropbox.com/s/63uuhoca3dqn03j/testing.capx

    Is there another way to do this? Perhaps use an array and remove items from that array and have the array automatically shrink so that I know whenever I randomly pick a point in the array, I'm guarenteed to pick an item and not an empty space? Kinda like an ArrayList in Java. Thanks

  • A bit off topic but how do I open these .cap files? I'm trying to use Construct 2 to open them. And how do I create them from my own project? Thanks

  • I want to avoid using animation frames because then I would have to make each individual frame and since I am doing this for cards, it would have to be a lot of different card faces to make animation frames for.

    I think I am just going to use the setSize property and make the width get really narrow so it looks like it's flipping over. It should be fast enough that it won't look wierd that the perspective is wrong.

  • I want to be able to stretch/skew/morph a square sprite into a trapezoid shape. It will be for an animation I want to make of flipping a card over.

    I assigned the "stretch" effect to the sprite and enabled the effect when I click on it. But now I need to change the "parameter index" and give it a "value" but I have no idea what these values should be.

    Is this the right avenue at all or is there another way? Thanks!

  • Tokinsom, I'll try messing with those two thing. I already verified that my sprite is at the same Y position regardless of whether it is on the floor or sunken into the floor.

dpmontes's avatar

dpmontes

Member since 21 Sep, 2012

None one is following dpmontes yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies