It is a platforming collectible, and the honest answer is that it takes practice rather than a trick.
Red power bricks in the LEGO games are always placed somewhere that demands a precise sequence — a timed jump, a vehicle section, or a switch you have to hit while something is moving. Die, reload the checkpoint, learn the timing, repeat. Once you have the rhythm the run takes seconds.
If you want the exact route, a video walkthrough of that level will show it far better than a description can.