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

2017/2/6

@danpost Score switching worlds...

1
2
3
4
Super_Hippo Super_Hippo

2017/2/7

#
What do you want this line to do?
Kokoro Kokoro

2017/2/7

#
Create the "bullet" and shot...
Super_Hippo Super_Hippo

2017/2/7

#
I mean just this line:
if (ChaserBullet bullet = new ChaserBullet())
As it doesn't make any sense to just put 'if (...)' around it... How could that be a condition?
Kokoro Kokoro

2017/2/7

#
I have no idea when it comes about programming in the past i managed to get it fast now i lose my patience and quit like everything i'm near quiting this idea soon and however never try work on this engine again idk...
Super_Hippo Super_Hippo

2017/2/7

#
Try to start with the tutorials. You will learn to know how to program and understand your code. As time goes by, you will get better and better.
Kokoro Kokoro

2017/2/7

#
I actually did that in past but i have no idea how in 1 month of break 1 year ago i just cannot understood and yeah i quit the boss idea just keep up the score thing to fix and mhm never come back here...
danpost danpost

2017/2/7

#
You need to explain what YOU want as far as when and how the boss is to shoot bullets. What rate of fire (or what delay between shots)? Are the shots to be fired at a regular rate or with some randomness to it? Is there a certain range that is required between the boss and the chased before a shot is even fired? Everything that deals with the boss shooting bullets must be provided (or at least determined) before the appropriate conditions can be encoded to regulate the firing of bullets.
Kokoro Kokoro

2017/2/7

#
Just shoots some bullets like 1 or 2 at 2 seconds wich will remove the "chased" or send him to a world that says he lost... I only need an example of him and working not the complex part.... All i asked was that class of actor called "Chaser" to be duplicated and had the option to shoot some bullets not even at a speed or even detailed thing just a normal demo of a boss that shoots the bullets randomly or even to the chased...
danpost danpost

2017/2/7

#
You can use a simple condition like the following, then:
if (Greenfoot.getRandomNumber(500) == 499)
{
    // create and add bullet to world here
}
Kokoro Kokoro

2017/2/7

#
Let's quit this topic i gave up...
Kokoro Kokoro

2017/2/7

#
Sorry for making all of you a bad day asking stupid things around here.
You need to login to post a reply.
1
2
3
4