0 Favourites

Family Problem

This forum is currently in read-only mode.
  • Hi I have 2 objects in a family. I have an area in game. I try;

    1-) for each object if they move to left/right/up/down from center I want them to scale up. Actually I can do that. There is not any problem with that. The problem is, I used family codes to do that but if only blue object moves x and y scale works. if yellow one moves there is nothing happening. Besides that, if blue object moves it scales both objects. But they have 2 private variables to scale each other with their own position.

    Here is my work:

    http://hotfile.com/dl/122785099/c325798/calisma-beyblade.cap.html

    Yeah I can write same code seperately but I'm planning to create maybe 20 objects like them. Plus if I do everything seperately whats the point of family(class) function. It mess's the code area.

    2-) Also I couldn't succeed on bounce for those two objects when they collide. They collide with sprite 3(which is oval line around the stadium) with no problem. But they don't bounce with each other. When I try that they goes inside from each other. So thats why I gave them solid behaviour. And beceause of that they don't bounce on sprite 3 everytime.

    I hope I could explain my problem enough.

    Oh and I added first event's first code (for each items) at last time and I forgot to delete it. Anyway It does nothing already.

    Thank you

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
98 7,598
norum82's avatar
norum82
Unread hot topic
87 5,376
facecjf's avatar
facecjf
Unread hot topic
80 10,062
jonathanbencomo's avatar
jonathanbencomo