[Plugin]Board, Layout2Board [Behavior] Grid Move

Post your completed addons to share with the community

Post » Fri Mar 22, 2013 3:54 am

Yeah, but that kind of defeats the purpose of using the board. If I pin a Chess to another Chess, and the ParentChess GridMoves up, functions like "Can Move Up", "On Hit Target Position", etc, will not work right..hmm
B
6
S
1
Posts: 31
Reputation: 1,237

Post » Fri Mar 22, 2013 4:03 am

@Skillasaurus

Wow~ I got it, I will think about this request. I had never thought it before.

Could you provide a simple sample capx for more detail?rexrainbow2013-03-22 04:05:34
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Fri Mar 22, 2013 5:47 am

I am no longer at my computer but when I get home I will create a sample real quick.But basicaly, all you have to do to reproduce the problem is this:

Create board and add 2 Chess Sprites to it.
Pin Chess1 to Chess2.
Use GridMove to move Chess2.
Both Chess will move correctly, but only Chess2 will update its LogicX and LogicY, making Chess1's logic position inaccurate anytime Chess2 moves, also rendering most of its Chess Events/Actions that are based on its LX and LY.

You can probably figure out a better solution then I could, but I'll just throw these out there just incase, even if they seem like common sense.

You can adapt the Board to detect a chess that is Pinned and update its LX and LY anytime its ParentUID changes. Or you can also add an action to update the Chess Logic position based on Physical position. Or add "Set LX/LY" actions in addition to "Move to LX/LY"

Skillasaurus2013-03-22 05:49:57
B
6
S
1
Posts: 31
Reputation: 1,237

Post » Fri Mar 22, 2013 3:07 pm

@rexrainbow

I would like to send you a video showing the behavior I try to reproduce within the Board Plug-In but the forum software wants me to collect some reputation first. But I would not like to publish the video here as it shows a prototype of another project.
Is there a way to reply on a private massage if you send one first?


B
6
S
1
Posts: 16
Reputation: 464

Post » Sat Mar 23, 2013 5:16 am

If you still need that CapX let me know. I've been trying to figure out a solution but still no luck and now my project is at a stand still. I don't want to ditch the Board Plugin though it makes everything so easy but my game requires pin
B
6
S
1
Posts: 31
Reputation: 1,237

Post » Sat Mar 23, 2013 6:45 am

@Skillasaurus

One solution is , set the LX,LY after parent chess stop.
Or I could make a "logic pin" behavior. Using pin + "logic pin" together to set position and LXY follow parent chess.rexrainbow2013-03-23 07:19:19
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sat Mar 23, 2013 5:51 pm

@rexrainbow

Forum does not let write even a reply. So here is a "Save as" link to a very short example.

I hope this helps to understand what I try out.:
www.poly-dream.com\o1.avi

Haha, can not even post a link with below 500 Rep...Raziel2013-03-23 17:52:43
B
6
S
1
Posts: 16
Reputation: 464

Post » Sun Mar 24, 2013 12:02 pm

There is no SetLX/SetLY. I could use Move I guess and it would be the same thing. My project has over 1000 Sprites on the screen at once updating and moving with custom physics using your Board and GridMove plugin. I try to avoid ForLoops with the Sprites as much as I can, but I would have to run it on all the sprites to find those attached to the Parent? I think it might lower performance but I will test it out when I get home. Still, if it is not too much work for you, a Logic Pin behavior would be very nice. It seems like it would not be too much work, but I don't know the SDK. Thanks for your help
B
6
S
1
Posts: 31
Reputation: 1,237

Post » Sun Mar 24, 2013 5:05 pm

@Skillasaurus

logic pin behavior
Capx

I guess you might be interesting in this demo.
- drag blue chess, they will move together
- chess could not overlap
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Mar 24, 2013 5:07 pm

You are awesome bro thank you. Testing now. Will edit this post later
B
6
S
1
Posts: 31
Reputation: 1,237

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests