need help on loop

0 favourites
  • 3 posts
From the Asset Store
SynthWave Loop Pack includes 68 seamless loops, founded on 11 original melodies.
  • i have a sprite "car" with 4 animations and another sprite "wheel". So basically its a car body and wheels.

    car has 4 copies on layout and 2 wheels on each car. i pinned wheels over the car. there is one global variable "selected car". All cars and wheels are out of layout

    here is what i am doing.

    On any key pressed > First selected car will move inside layout about 400px and then other cars will move one by one. everything is working fine excepts wheels when car is moving then wheels should rotate but i am doing something wrong here and wheels are rotating event after car stopped for half second.

    please anybody can help me to fix this issue.

    Tagged:

  • In event 43 you pick wheels where wheel.u_id=Car.AnimationFrame

    Is this really how you link wheels with cars? Shouldn't there be Car.UID?

    Also, you don't need event 42 (For each wheel), remove it. And you can pick using PinnedUID expression:

    Pick Wheel where Wheel.Pin.PinnedUID=Car.UID
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks it working.

    i was never aware about pinnedUID

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)