collision,mouse move,random

inflameinflame Member Posts: 11
edited January 2012 in Working with GS (Mac)
Hi
I really need help with my game. I searched on web, youtube, this forum and nothing found. A
Also tried many examples and similar templates and nothing.
This is my problem.
I've simple game with several actors surrounded with four walls. Every actor need to move in x,y direction with mouse and collide with
each actor and walls. Problem is when actor collides with next actor it pushes away from him. I put a rule when touch is released it must stop but that won't work. Ok this is first problem, second one is related to random actors. I want to arrange actors by colors and when I do that game must finished. How do I do that? Also when I star new game actors must be in different position. This can be do with random function but how do I do that?

I'm new in game salad so please can you help and guide me. So explained above I've three problems actor collision problem and movement, random actors and game finish logic.

Here is my template to see where is the problem.
http://www.mediafire.com/?e4z1ho5v3dga4gg

thanks in advance

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Is there a reason you are using velocity instead of just a simple Move behavior that constrains the puzzle piece position to device-->mouse-->position-->x and y? You could then set the pieces to Non-movable and just drag them to their new locations.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • inflameinflame Member Posts: 11
    thanx for reply. I used this template http://gshelper.com/?p=377
    because with simple move collision with actors and walls didn't work. I'will try with non-movable.
Sign In or Register to comment.