![]() The act method in the Bullet class should have a move command and check for edge of world to remove a Bullet object from the world. In the fireBullet method, you need to (1) create a Bullet object (2) add it into the World object that the King object is in and (3) set its rotation according to the current image of the King object. ![]() Sorry that im asking so many questions but is this right? and if so how do i use the get image code line and then after how do i make it fire the bullet in that certain direction? will it be coded that so that the bullet will travel in a certain direction when the getImage code is used and do i set that up like how i did my movement for my character (eg, move (-2) and setLocation)Looks okay so far. Nallaekul wrote.Hey just a quick question how would i make the fireBullet thing, and then am i required to use the check image line and if it is that image to make the bullet fire in a certain direction, as of now i dont know how to do it, thanks Sorry that im asking so many questions but is this right? and if so how do i use the get image code line and then after how do i make it fire the bullet in that certain direction? will it be coded that so that the bullet will travel in a certain direction when the getImage code is used and do i set that up like how i did my movement for my character (eg, move (-2) and setLocation) Private GreenfootImage down= new GreenfootImage("King Down.png") Private GreenfootImage up= new GreenfootImage("King Up.png") Private GreenfootImage right= new GreenfootImage("King Right.png") Private GreenfootImage left = new GreenfootImage("King Left.png") If (spaceDown != Greenfoot.isKeyDown("space")) No programming experience required We will define and program a game using the Greenfoot development software. * the 'Act' or 'Run' button gets pressed in the environment. Historically ranked among the South’s top 10 shooting estates, the scenic 1,227-acre estate for sale through Strutt & Parker (01722 344010) at a guide price of ‘excess 5 million’ is renowned for its challenging high-flying birds it hosts some 26 shooting days a year, with 21 famous drives producing an average daily bag of 245 partridge and phea. Overview Purpose In this tutorial you learn how to create 2D games using basic Java programming in this self-paced, online course. This goes for arrows, throwing knifes (and similar), rope coils, projectile shot when using enchanted sword (and similar), and any projectile an enemies has/would've. In my game the projectiles that are shot are not visible and do no damage. (World, Actor, GreenfootImage, Greenfoot and MouseInfo) / Write a description of class laserv3bad here. Projectiles are invisible, do no damage, and are not working at all. (the 'badguy' is the enemy spaceship I trying to program to shoot towards the bottom of the screen.) Here is my code: import greenfoot. * Act - do whatever the King wants to do. My problem is that I cannot make my enemy spaceship shoot back at the user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |