Lopimp's Recent Forum Activity

  • Hi,

    I am still working a really basic stuff, so far I am working on a puzzle game.

    I have two families :

    • pieces (where I store puzzle pieces)
    • placeholder (where I store the placeholder where the piece should be placed)

    When I had one puzzle it was fine, but as I want to have multiple puzzle, i'd like to only have the pieces and the placeholder of the puzzle the user is playing with.

    My idea was to empty both families on layer start then add the pieces and placeholders of the current puzzle only.

    So that way I could keep only one Events page to deal with the logic of the drag and drop of pieces into placeholder.

    Now I am working on making it work with a family instance variable isActive for pieces and also one isActive for placeholders families.

    I am still on my way and I am not sure I'll be able to finalize all.

    So far it's fine for pieces, but I am still struggling with the 'set active' of placeholders of my current puzzle only.

    What I feel now is that it's a quite chaotic work around and that having action to add and remove items from families would be clearer and a more structured way to go

  • Try Construct 3

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

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

    I am raising up this post as I would also be interested in the possibility to manipulate objects within a family dynamically through Events.

    Is there a way to add/remove/ clear object from a family?

    Thx

  • Ok I updated the 0 to use a variable instead.

    thanks

    Here is the full capx using functions/families and sub-events : lo-zone.com/labo/puzzleLo/puzzleLo4.capx

    Thanks a lot for the help

  • Sorry i don't get it.

    What did you fix that I broke?

    Regarding this topic, it's actually still valid. I didn't find a way to get an object by UID and use it in an action.

    It might not be possible but would be useful (I think)

  • Yes thx but so far I only use effect to have visual testing.

    If you can help me with my other issue feel free :)

  • Ok good to Know thank you. It's always good to know such things.

    So far I use effects for testing only.

    I managed to get a hold of my cell Id but now I am stuck with another issue related to the same issue.

    It's related to this post : scirra.com/forum/puzzle-board-game-best-practices-capx-incl_topic76776.html

  • Ok I've managed to get the map item I was over with by using a sub event.

    But I still have an issue to set my player position to the map item from the family I am over.

    This is the last event of my capx

    lo-zone.com/labo/puzzleLo/puzzleLo3.capx

    I'd really appreciate if someone could help.

    Thx

  • Hi Everybody,

    I am Lo and I am 32.

    I am playing game since I am a kid.

    I started playing on a Spectrum, back then games where on audio tapes and when you started loading your game (by typing load "") you could play outside, play a board game, doing your homework,... before your game was loaded.

    Games were simple and very hard at the same time.

    Simple because it was rather basic with no complex rules and heavy scenarios

    Very hard because you could not save your game and always had to start from the beginning when you 'died'.

    Then my dad had laptop at work,... a Toshiba 3200. This looks way more like a big suitcase than like a real laptop. It was monochrome (orange) and had a 4 Mb of RAM and I had 9Mb harddrive to install games.

    This was a real blast compared to the Spectrum I played on before.

    Than computer got more powerfull and I kinda followed the PC evolution.

    I am not really a console player, rather a PC one. I had a gameboy and really enjoyed it, but I am more a 'keyboard/mouse' kind of player than gamepad one.

    I like a lot of different kind of games, but I think my favorites are trun based ones. I like the fact that I can take my time to play and that I don't have to rush into the game.

    Now that I am older it's even more true. I don't have as much time to play and since I've got three kids I am also more likely to be disturb while playing. So I really like games I can pause , save, stop and start back when I have time.

    I am a web developper and I dev some games during my free time.

    I made some web based games and want to start building multiplatform ones now.

    Construct2 sounds like a very good option for me. It allows me to use a tool that avoids to redo everything from scratch and reinvent the wheel everytime. It also gives me the oportunity to deploy my game on several plateform without having to learn each plateform language.

    Since my time is also limited Construct can allow me to get to a result faster.

    I followed some tutorials and start learning the tool. I bought a personal licence now to have the full power of Construct2. I now need to spend time to learn how to achive the games I'd like to release.

    I am probably gonna be a pain in the a** with all the questiosn I'll post in this forum :)

    I hope to be good enough to be able to gather all the ideas I've got in my head and make finalized games out of them.

    Thanks everybody for the help I already got and thanks for the futur help :)

    If you have any further question don't hesitate to contact me ;)

  • Basically I want to highlight a puzzle piece I am dragging an object over.

    here is my capx : lo-zone.com/labo/puzzleLo/puzzleLo2.capx

    I unhighlight all piece but I need to highlight the one I am over.

    I have the uid of the piece I need to highlight in a global variable ( the one I display on screen)

    I've got two places where I'd need to get the object based on it's uid

    Thx

  • Hi,

    I know the UID of an object and would like to use it in an action.

    How can I get this object?

    Thx

  • Hi,

    I've updated my project using families and function but I am a bit stuck trying what I want to achieve.

    here is my updated capx : lo-zone.com/labo/puzzleLo/puzzleLo2.capx

    I've got 2 functions in the event and a question for both (questions are in a remark in the event tab)

    1) ????? -> How to disable 'black and white' effect for all family item and how to enable it only for the one I am over (id being the function param)

    2) ????? -> How to set position to familly item Player is over (id being the function param)

    Help would be really appreciated

    Thx

  • Hi everybody,

    I am starting to implement a drag and drop puzzle 'game'.

    This is more an experiment than a real game, but I wanted to get advice from experimented C2 users on the best practices to achieve such project.

    My goal is to start small by setting up a kid puzzle game. It would be some easy 4 pieces puzzle where you can drag and drop the pieces in their correct placeholders.

    Later on I'd like to move forward in my learning to be able to start building board games (there as well it would go from very simple to more complex stuff based on what I would have learned)

    So far I am not at the 'simple kid puzzle game' yet, I just have a capx file/project that does the following:

    1) Initiate a player in a placeholder sprite

    2) Initiate a map composed of 5 sprite having a disabled 'black and white' effect

    3) Add drag and drop on player (and position it to the touch position)

    4) Highlight the map cell I am over (by dragging the player). Only one map can be highlighted at the time)

    5) Handle the 'on drop' so the player position is either set on the map cell highlighted, either it's placed back on the initial placeholder.

    (sorry I can't post links yet)

    Demo is there : lo-zone.com/labo/puzzleLo/demo/index.html

    Capx is there : lo-zone.com/labo/puzzleLo/puzzleLo.capx

    I looks a bit 'static' to me, I was wondering if there were better way to implement such things. Maybe there are plugins that would be better to use for such 'game' maybe there is a way to 'loop' through the map definition, or a way to group map items toegether as they mainly have the same behaviour.

    here for each map item I copy pasted the events and updated to fit to map1, map2, map3, map4 or map5. maybe there is a way to have a loop that could define the whole map (especially if I start having bigger maps).

    Don't hesitate to let me know if you need further info or if you want me to clarify some points.

    Thx in advance for any help you could give me.

Lopimp's avatar

Lopimp

Member since 30 Sep, 2013

None one is following Lopimp yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies