RBuster's Recent Forum Activity

  • Hi dop2000

    Thanks for the capx.

    What I was imagining:

    - cards facing down

    - some cards leaving from the middle of the pile (some to the right of the pile and some to the left)

    - then these cards return to the pile: some coming up and some going down and this action repeats several times in a fast way.

    I don't need to show these cards after that and I already wrote the code to randomize the frames. I just need to create the animation that simulates a deck card shuffle.

  • I want to create a scrambled card animation (a simulation of cards moving sideways and then returning to the stack of cards as if it were shuffling), but I wanted to dynamically do this using a C3 behavior like Tween. The problem is that I cannot imagine how to do that, except creating the animation of each card. Could someone give me an idea of how to do this?

  • Try Construct 3

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

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

    I got it. Thank you!

  • I am trying to create an animation that moves each square to the right place according to the same id number and in an ordered way, starting with the id1 and finishing with the last one and with a quick interval between each one. I created the animation but not in the right order (my animation is starting with the last one and it's decreasing). I already tried to invert the count value and summing instead of subtracting this value but I am not getting it right. Please, some help.

    A sample:

    dropbox.com/s/91qz25ly3cu7djl/demo_animation.c3p

    Important: I don't want another solution. Please, don't change this script. I just want to understand what I need to do to fix this sample.

    Thanks

  • Yeah, you would change the x by the card width every nth index.

    Search the forums for how % or, modulus works.

    Thank you

  • Kinda like this?

    https://www.dropbox.com/s/ipwpdmwwsszqpg0/dealspline.c3p?dl=0

    Remember that you need to clean all the points if you do another spline.

    Thanks for the example. Is it possible to animate a sprite per time, positioning them in a specific place, as leaving the pile and going to a position on the board (like the rows in the solitaire game)?

  • Hi newt

    I have checked the plugin e the behavior you had suggested. I got the smart random but I did not understand the spline movement and I did not find any example to check how it works.

    As I want to simulate some animations with the cards (shuffle and distributing them on the board), I intend to create a sprite with 52 frames (the total of a card deck) and create 52 instances of this sprite. The idea is to create a pile that the player will touch to distribute part of these cards on the board (as happens in a solitaire game). Every time the player touches the pile, the card moves to the right position and flips to reveals itself. The game will have another dynamic totally different from the solitaire game, that is already done. I just need to create these preliminaries.

    I would like to know your opinion on how I am planning this part of the game I explained above, and ask you to help me to understand how the spline movement works.

  • Well that would depend on the shuffle method, there's many ways to do that not just on the computer.

    I think most of the time you don't even see the faces during a regular shuffle anyway.

    The method I see most often is a spline moving the cards around from on spot to another.

    https://www.construct.net/en/make-games/addons/198/spline-movement

    Then for the shuffle you can just populate an array and match the card index.

    https://www.construct.net/en/make-games/addons/187/smart-random

    Thanks, newt

    I'll give them a try and I 'll let you know the results later.

  • I would have it sample the current orientation, then if the touch accelerometer values change on at least two axes you can consider that the start of a shake.

    Hi newt

    Sorry, but I did not understand what you are meaning. Do you know if I can find an example of your suggestion?

    To implement a real shuffle, I imagined changing the Z position of each card as the player shakes the device, when it is finished, the cards are put together in a single pile to be distributed to the correct place one by one. What do you think?

  • I am trying to create a card game and I would like to implement an interactive shuffle that happens when the player shakes the device or moving their mouses quickly if they are playing it on the pc. I am wondering if these two options are possible and if someone can give me some simple tips about how to implement them. Thanks.

  • > I am sure they are C3 plugins. The Rex Tag text I got from his official GitHub.

    https://github.com/rexrainbow/C3Plugins/tree/master/plugins/rex_TagText

    yes its c3 plugin. but not support c3runtime. only working c2runtime.

    select c2runtime

    Ok. I got it. Thanks, nacra and Eren

  • Have you checked that they support the C3 runtime? To see that the plugins are C2 only, create a little test project, and set it to use the old C2 runtime. Try adding those plugins. If you can, you’ve demonstrated that the plugins are working, but are C2-only.

    I am sure they are C3 plugins. The Rex Tag text I got from his official GitHub and, as I said, I can see these plugins in the Addon Manager window. They are there with all the respective information. I just cannot include them on my projects because they are not in the "Create new object type" window.

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • 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

21/44
How to earn trophies