This site requires JavaScript, please enable it in your browser!
Greenfoot back
Borf
Borf wrote ...

2018/10/30

Can I put a value in the parentheses of bullet.move();?

Borf Borf

2018/10/30

#
iamdsd iamdsd

2018/10/30

#
Nice code pal. LOL
Plop Plop

2018/10/30

#
where is the code?
iamdsd iamdsd

2018/10/30

#
#FLAMED
Dude major L dance, no code nerd
FLAMED
Borf Borf

2018/10/30

#
 if (reloadDelayCount >= gunReloadTime) 
        {
            Bullet bullet = new Bullet (getVelocity(), getRotation());
            getWorld().addObject (bullet, getX(), getY());
            bullet.move ();
            reloadDelayCount = 0;
        }
iamdsd iamdsd

2018/10/30

#
Bro code still isn't here bro what are you doing?!?!?!
danpost danpost

2018/10/30

#
Borf wrote...
Can I put a value in the parentheses of bullet.move();?
The move method of the Actor class requires an int value in the parentheses. See here.
You need to login to post a reply.