simone15793's Forum Posts

  • 8 posts
  • > For many reasons I can't use a single object with 100 frames or animations, so I have to work on 100 different object unfortunately.

    Why not? And why can't you combine them into a family?

    It's not a good project organization when you have 100 similar but different objects, each with its own instance variables, behaviors etc.

    Even if you find a way to run an event for all of them (say, via a script), working with these objects will be very-very difficult. I strongly suggest to reconsider.

    Hi, I have the free versione of Construct...and I can't use families. Easy reason, I'm poor ,😅

  • Try Construct 3

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

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

    following an example of my situation:

    I have 100 different objects (sprite, sprite2, sprite3, sprite4....sprite100). How do I apply to all objects these 2 events without using "Families"?

    For many reasons I can't use a single object with 100 frames or animations, so I have to work on 100 different object unfortunately.

    Could anyone suggest me a way to solve this issue?

  • I solved using this tutorial and doing some modifications:

    construct.net/en/tutorials/drag-scroll-screen-using-1351

    I hope could help others in the future :D

  • Hi Guys,

    I saw these tutorials:

    construct.net/en/forum/construct-3/how-do-i-8/touch-scroll-133582

    construct.net/en/forum/construct-3/how-do-i-8/need-help-layout-scrolling-149159

    construct.net/en/tutorials/swipe-based-smooth-scrolling-337

    but they are not perfect. I would like to implement in my app a smooth scrolling (with inertia, speed, acceleration exct) like in other famous app like Facebook and Instagram.

    Is it possible in Construct 3?

    Thank you.

  • > Hi guys,

    >

    > following my situation:

    >

    >

    >

    > I would like to add an event in which, when I touch after the first time, before creating other random objects, it destroys the ones created previously. How can I do this?

    Here is what I have done.

    https://drive.google.com/file/d/1jV2HO8ZiJ3i07_x31O3q9RWY9kyBt7Tb/view?usp=sharing

    I made it so that when you click the button, it will call a function to delete the previous things, wait 0.0001 (or something like that), and then create new cards. The problem with the code you uploaded was that it would have the old cards underneath, so if there was a link, it would try to take you to all of the previous card links at once. I also added a ripple effect (or 3) so the user can tell when the hit the button, you can choose which one you like best, just make sure when you change it, you set it to start at the last frame (so it won't start before the user clicks the button). If you don't like any of the animations, then you can just change it back to the regular button.

    I'd also suggest, that you push all the different pictures into one card, then just change the animation to a random one. That way, if you don't have the full version, you can save events.

    Start by adding a instant variable, that is named, "GoTo" and have the system change the variable on the card depending on the name of the animation. Then all you need to do is add a event, "Mouse - On Object Clicked - Cards -- System - Go to layout (by name) - [Name_Of_Cards].GoTo"

    also, "System - Every Tick -- Cards set value - GoTo - Cards.AnimationName

    Note:For the instructions above, you can replace "Cards" With whatever you want the name of the cards to be. You also would need to have the layouts named 1, 2, and 3. The animation names would also need to be 1, 2, and 3. (Eg. Naruto's animation would be 1.)

    Updated File: https://drive.google.com/file/d/1QAoAPzNon6soLiAp4hL71q0RCyX5doKI/view?usp=sharing

    Hi, really thank you. I think it is an excellent work. I will start from that to go on. I think I will try to replace the objects with frames and animations in one object, because I want more or less 100 different cards. Also the short game is pretty cool. Thank you again :)

  • Can you add more detail, in how you would like the game to run?

    Everytime the Blue Button Is tapped random cards have to be creates on the 2 Grey slot. After that, if you push again the Blue Button before to spawn again other random cards system have to destroy the cards spawned before. This because tap after tap system Will create a lot of cards and It Will explode at the end 😅. I'm also thinking about to make a new layout in which I Will collect each card spawned from the slots. Do you think Is this possibile?

  • I have an idea on how to fix this. Can you upload the .c3p file to goole drive, then share it with me "st29dkolb@southerntioga.org" and I will try to fix it. Thanks.

    Hi, I think you have the access to the file now. Let me know if you can solve it. Thanks :)

  • Hi guys,

    following my situation:

    I would like to add an event in which, when I touch after the first time, before creating other random objects, it destroys the ones created previously. How can I do this?

  • 8 posts