Well if your using DBC (Dark Basic Classic) this code should help you out, i've putten in comments so it's easier to understand
`Refresh Rate on
sync on : sync rate 60
`2 Parts to the star
make object Plain 1,100,100
make object Plain 2,100,100
`Color them Yellow
Color object 1,RGB(255,255,0)
Color object 2,RGB(255,255,0)
`Shadow behind the star
make object Plain 3,100,100
make object Plain 4,100,100
`Color them black
Color object 3,RGB(0,0,0)
Color object 4,RGB(0,0,0)
`Position the star
Position object 1,0,0,400
Position object 2,0,0,400
`Shadows a bit down and right and further back, deph...
Position object 3,10,-10,430
Position object 4,10,-10,430
`Color of background Red 0-255/Green 0-255/Blue 0-255
color backdrop rgb(255,0,0)
do
`Makes the star rotate
zrotate object 1,wrapvalue(object angle z(1)+0.1)
zrotate object 2,wrapvalue(object angle z(1)+45.0)
`Shadow rotates same speed as object
zrotate object 3,wrapvalue(object angle z(1))
zrotate object 4,wrapvalue(object angle z(2))
sync
loop
{Edit} - I changed the star from a box to a Plain saves memory... since you arn't using / viewing the other sides of the box's they arn't needed.
Box = 6 sides to it
Plain = 1 side to it
*Side inspiration note for ye* It may take you a while to learn DB but you'll be making decent games in no time.. best route is probably messing about with your own code changing things about so you get a better understanding instead of just repeating code for the sake of it.