winkr7's Forum Posts

  • Hello;

    I have a UID that is a member of two families, ball and toy and both are sprites. To to save and load it from JSON is this what I need to do?

    pick toy by UID toyString = toy.AsJSON

    pick ball by UID ballString = ball.AsJSON

    then to load it i create a ball or toy by UID and do the following?

    pick ball by UID ball set from ballString

    pick toy by UID toy set from toyString

    The second set from toyString doesn't overwright the stuff that is ball only that I set from ballstring? What about the sprite specific stuff? Does it get its location angle etc from the last toy set from toyString?

    Is there some better way to save every family a UID belongs to as a string?

    thanks

    yours

    winkr7

    Tagged:

  • I like the new functions much better than the old one--however, as others pointed out--I keep losing the set return parameter in my list of functions. I now put everything in a catagory that starts with a letter after f so the "set return parameter" is at the top of the list.

    There is another problem with functions--suppose i have a local static variable in my group name and functons in the group that reference it. If I disable the group the function still gets found but the variable the function needs does not.

  • Thanks Magistross you are always helpful.

    I think I will do as you suggest and create a family called globalSprite and put all my global sprites in it--then cast cork (using pick globalSprite by cork.UID) and if it is a member I know it is a global cork.

    I was hoping there was some other way to check.

    thanks agaim.

    yours

    winkr7

  • Try Construct 3

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

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

    I have a family, called cork--some members are global sprites, how can I find out (once the game is running) if a particular member (UID) is global or not?

    thanks for your time

    yours

    Winkr7

    Tagged:

  • Dr. Hasan;

    Thanks for the help.

    yours

    winkr7

  • Thankyou Kyatric and Dr. Hasan;

    Dr Hasan your example the problem is when I push the arrow key i starts up one box and if I push it while the box is moving it doesn't start up the next box when the first finishes moving. I tried to use a signal to get the next box to start when the first box finishes but didn't have any luck.

    Can you get your example to get the next box to start (only if the arrow key is pushed while the first box is moving)?

    I appreciate your time and help.

    yours

    winkr7

  • Thanks Magistross. Will do.

  • Thanks Kyatric;

    I run the standard 157 non-beta version of C3 so I can't run your CP3 yet since it is beta, but as soon as we go to 159 I will definitely have a look.

    I appreciate the help.

    yours

    winkr7

  • Dr. Hasan;

    I am trying to do this with three boxes. If any one of them is moving the next box has to wait to move until the first box is done. Each box doesn't know how long the next box will be moving so it has to keep checking for when no box is moving. I tried to use signal for this, but it is clear I don't understand either the order events are executed in C3, what wait does, or what signal does. So using your ideas how do I get each box to wait for the next to finish moving?

    Thanks again for your time.

    yours

    winkr7

  • Dr. Hasan;

    This is a very good idea. Thanks for taking the time to answer.

    yours

    winkr7

  • Thanks Dr. Hasan;

    With your fix It works for 1 second wait.

    If I set the wait time to 0 it doesn't work. Once I call the tween function I guess it doesn't start right away.

    yours

    Winkr7

  • Hello;

    I am not sure if I should put "" around my tags for tween or if the problem is elsewhere. I believe this should send a message to text object after one second saying it is currently tweening. It sends the message when it is done tweening but not while it is tweening. See very short cp3 image below (its just a few lines).

    thanks for your time

  • plinkie;

    I appreciate your time and question. To answer your question--I may want to have something other than toy be in the color family.

    The color and ball families need to stand on their own and not be associated with toy unless toy is a member.

    yours

    winkr7

  • Hello;

    Suppose I have a toy that can be a baseball,volleyball,basketball and red,white,or green. The toy is a member of the ball family and color family each has a data member that says what kind of ball or what color. If I get a string of toy.AsJSON shouldn't that string also know about the other families that toy is a member of?

    When I load toy from the jason string it is randomly selecting what kind of ball and what color, as if it knows it is a member of the family but didn't save what kind in the string.

    How to I save toy to a string and have it know what kind of ball and color the toy is?

    thanks for your time.

    yours

    winkr7

  • My experience with RPG maker is that everyone spends all their time writing their own GUI because they don't like the GUI the engine comes with. Most of the addins (like Yanfly) start by undoing the GUI. If you look at what is requested on their boards it is about the same here--they want a user interface--just not the one they get with the game engine.