0plus1's Recent Forum Activity

  • drpool, I tried what you said, it wouldn't work and upon inspectin the problem it looks like the sub-event checks if the mouse is over the instance picked with UID while I need to pick ANOTHER instance, completely different from the one where my button has been released

  • I have several spawned object.

    On mouse over OBJECT_1 && Left button Clicked -> set global_var to OBJECT_1.UID

    On mouse cursor over OBJECT_1 && Left button Released -> ???How do I do this: destroy UID???

    I hope I was able to explain myself

    EDIT: to be more clear. I stored the first object UID in a global variable, when I'm over the other object I want to destroy the first object, the one which UID I stored in the global var.

  • Maxum Thanks, I understand now, I didn't knew construct kept track of the instanced object, it's incredible how easy it is, I'm a programmer (applications, not games) so I'm accustomed to another way of thinking, incredible.. as soon as I finish my game I'll be sure to show it you.

    Yann I'm re-doing the classic solitaire (the one included in windows) to learn construct

  • Thanks Yann, you answer confirm that this is not the way to go for me.

    What I want is to be able to click on a card, retrieve it's value/suit, then destroy it or drag it across the screen.

    The array method gives me the value with a mathematical "trick" but doesn't get me the spawned object id.

    Now I just started in construct, so I'm not really sure if it's even possible to have an event like:

    onclick spawned_object_10 do something..

    As I see it he only way would be to load each card as a different object and then using a randomized array spawning them on the screen, keeping each of them indipendent.

  • Hi, I'm making a solitaire game, I followed all the advices here and I understand what are you all saying, but there's a problem.

    The formula that Yann posted gets you the current card, and I understand the principle BUT what if I want to get the card value and suit LATER?

    I lay down my rows, then I want to click on a card and retrieve the value and suit, how can one do that?

    Thanks

    EDIT: I could keep track of the position of each card, but it looks "hackish" is there a way to set a variable to each of the spawned card object?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (even down to the 10mb limit! for now at least, some games are 90mb)

    Sorry for the OT but Kroll has been made in HTML5?

    My jaw has dropped!!!

  • I see.. then what is the route to take?

  • You can use the Chrome trace tool to do a step-by-step progression inside your JS code to spot where is your problem.

    Not a bad idea, still a little complex since you will be tracing all of the construct javascript and not only your "code" a debugger would be very nice, meanwhile I'll follow your advice.

    Thanks

  • Is there a debugger somewhere? Like something that dumps everything (variables, objects instances, etc..) somewhere? Something like the firebug console.log('something');.

    If not it should be implemented someway, it's a pain to create text objects to check the variables..

  • Hello, maybe I'm just at the beginning of my construct career, but I'm having problems doing a simple physic propulsion.

    I'm playing with physics and I would love to have an object behave like a rocket, shooting across the screen. I already know about "apply force" and they could work to an extent, but I would like something more rocket like. I tried setting velocity and force but they keep accelerating when I would like more of a constant force.

    I hope I explained myself, thank you.

  • In construct classic there was the "card" object (or something similar I can't recall exactly) is there something similar for construct 2? If not where shouold I start?

    Thanks

  • 1) Unfortunately not, sorry - see the FAQ

    Sorry for missing it in the faqs <img src="smileys/smiley9.gif" border="0" align="middle">

    Thanks for the kind answer.

0plus1's avatar

0plus1

Member since 29 Dec, 2010

None one is following 0plus1 yet!

Connect with 0plus1

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies