Bullet won't shoot Programming Software Development by london-G … { g.setColor(Color.BLACK); g.fillRect(bullet.x, bullet.height, bullet.width, bullet.height); } } public void move(){ x… == e.VK_SPACE){ ready = false; if(bullet.y <=-5) bullet = new Rectangle(0,0,0,0); shoot… Re: Bullet Animation With Keys Programming Software Development by sirlink99 …dbImage; private Graphics dbg; Thread thread; Image img, tile, background, bullet, blank, mon1, mon2, mon3, mon4, mon5, mon6, mon7; …() { img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); blank = getImage (getDocumentBase (), "Blank.jpg"… Re: Bullet Animation With Keys Programming Software Development by javanoob101 …img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); rocketBullet = getImage (getDocumentBase (), "… - 1, y + 37, 40, 10, this); g.drawImage (bullet, bx, y + 37, 40, 10, this); //g.drawImage (… Bullet Animation With Keys Programming Software Development by javanoob101 …img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); blank = getImage (getDocumentBase (), "Blank… bx - 1, y + 37, 40, 10, this); g.drawImage (bullet, bx + i, y + 37, 40, 10, this); } triMove … Bullet animation. Programming Software Development by sirlink99 …dbImage; private Graphics dbg; Thread thread; Image img, tile, background, bullet, blank, mon1, mon2, mon3, mon4, mon5, mon6, mon7; …() { img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); blank = getImage (getDocumentBase (), "Blank.jpg"… Re: Bullet Animation With Keys Programming Software Development by javanoob101 …img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); blank = getImage (getDocumentBase (), "…, bx - 1, y + 37, 40, 10, this); g.drawImage (bullet, bx + i , y + 37, 40, 10, this); } triMove… Re: Bullet Animation With Keys Programming Software Development by javanoob101 …img = getImage (getDocumentBase (), "Shoot.jpg"); bullet = getImage (getDocumentBase (), "bullet.jpg"); blank = getImage (getDocumentBase (), "Blank…, bx - 1, y + 37, 40, 10, this); g.drawImage (bullet, bx, y + 37, 40, 10, this); } triMove = false; … Re: Bullet Animation With Keys Programming Software Development by JamesCherrill [QUOTE]I want it to animate my bullet across the screen just by pressing the space bar(not … Timer that fires every 1/n secs and moves the bullet each time it fires. On KeyReleased, stop the Timer. ps… Re: Bullet Animation With Keys Programming Software Development by sirlink99 it is supposed to be a time delay so the bullet shows up and moves across the screen, instead of it just appearing as a laser. Re: Bullet Animation With Keys Programming Software Development by JamesCherrill I was referring to the coordinates at which you will draw the bullets or whatever when you repaint() causes your paint method to be called - so each time the timer fires you update the variables that control the position of the bullet, then your paint repaints it (just once each call) at that position. Re: Bullet Animation With Keys Programming Software Development by javanoob101 Well, I want to thank everyone for posting in this thread! I finally got my bullet to animate the way I wanted!!!!!! Special thanks goes to JamesCherrill for putting in so much time and coding tips and samples! Thank you to everyone!!!!!! =) javanoob101 Re: Bullet Animation With Keys Programming Software Development by javanoob101 O.k I marked it as "Solved"! I have a new thread too. This is for the collision detection to make the monsters disappear when the bullet hits them and I need help quickly. This is due tomorrow and I feel overwhelmed with all the coding needed to make a collision detection! Please help!!!!! Re: Bullet creation in xml using PHP Programming Web Development by rahejapreeti … correct, i need an ordered list only, prefixed by a bullet. yes, we can manually put a code (&#x2022;) for… in the browser appears as (&#x2022;) instead of a bullet. i am using DOMDocument class to generate XML . could you…=darkagn;687480]Hi rahejapreeti and welcome to DaniWeb :) By a bullet, do you mean an ordered list? Do you know how… bullet button Programming Web Development by davy_yg …;'; ?> </div> [/CODE] I am trying to print bullet button list for each kategori: [CODE] if ($_REQUEST['catid']==$data…>'; [/CODE] I wonder why I do not see the bullet button, only the kategori text? Bullet creation in xml using PHP Programming Web Development by rahejapreeti If anybody could let me know how to create a bullet in an xml file using php. This piece of knowledge will be highly appreciated. Thanks Re: Bullet creation in xml using PHP Programming Web Development by darkagn Hi rahejapreeti and welcome to DaniWeb :) By a bullet, do you mean an ordered list? Do you know how … bullet list - insert into database Programming Web Development by gunnerone Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed later from the database. Re: bullet list - insert into database Programming Web Development by blocblue … a textarea, and treat each new line as a separate bullet point, you could store the plain text in the database… I could not show the bullet Programming Software Development by Huang xiao … = 560; Graphics2D g2d; Thread gameloop; Bullet bb = new Bullet(); Mypanel p = new Mypanel(); public Mygame…bullets = new ArrayList <Bullet>(); bullets.add(new Bullet(posX,posY)); getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).… Re: I could not show the bullet Programming Software Development by Huang xiao …i understand how to update the position of my bullet,but it's not moving public void paintComponent(….BLACK); g2d.drawImage(ship, posX, posY, null); for(Bullet b: bullets){ b.draw(g2d); } } public void update(){… Re: I could not show the bullet Programming Software Development by Huang xiao … rect,i expected that when i pressed arrow up the bullet will go forward. public void paintComponent(Graphics g) {…Color.BLACK); g2d.drawImage(ship, posX, posY, null); for(Bullet b: bullets){ b.setX(posX); b.setY(posY); b.draw… Please help me in getting my "Bullet" to show Programming Software Development by runee1000 …[CODE]import java.awt.*; import java.awt.geom.*; public class Bullet { private Image picture; private int xpos, ypos, height, width… extends Applet implements KeyListener { BufferedImage imageBuffer; Graphics2D graphicsBuffer; private Bullet s; private Timer t; Image p; public void init() … Re: Please help me in getting my "Bullet" to show Programming Software Development by tong1 …observation report may help you. I found: (1) in class Bullet line 49: g.drawImage(picture, xpos, ypos, width, height,…the access modifiers (private) for the attributes of class Bullet with friendly so that they could be accessed in the… so that the work of display() of the class Bullet can be done without calling s.paint(graphicsBuffer); (line… Re: I could not show the bullet Programming Software Development by Huang xiao …(Color.BLACK); g2d.drawImage(ship, posX, posY, null); for(Bullet b : bullets){ new Bullet(getX(),getY()); } } I am confuse...please help me… Re: I could not show the bullet Programming Software Development by JamesCherrill No, that just creates a new Bullet. For each existing bullet in the list you need to get its x and y coordinates, then draw something (eg a small circle) at that position. Re: I could not show the bullet Programming Software Development by JamesCherrill A method in your bullet class is a good way to do it. Then call that method for every bullet from your main paintComponent. You last post is completely wrong - you *set* x,y when you should *get* them, and don't paint anything. Re: I could not show the bullet Programming Software Development by Huang xiao Hi james, > A method in your bullet class is a good way to do it. you mean to use the setters and getters in my bullet class ? Re: I could not show the bullet Programming Software Development by JamesCherrill for(Bullet b: bullets){ b.setX(posX); // wrong! b.setY(posY); // why? b.draw(g2d); You keep resetting the position of every Bullet back to its original position every time you paint it. You don't need to / must not do that. Re: I could not show the bullet Programming Software Development by Huang xiao … it to this way,..how do i move forward my bullet? public void paintComponent(Graphics g) { super.paintComponent(g); ….BLACK); g2d.drawImage(ship, posX, posY, null); for(Bullet b: bullets){ b.draw(g2d); } } Re: Please help me in getting my "Bullet" to show Programming Software Development by runee1000 … myApplet extends Applet implements KeyListener { BufferedImage imageBuffer; Graphics2D graphicsBuffer; private Bullet s; private Timer t; Image p; public void init() { ….getGraphics(); p= getImage(getCodeBase(), "sunset.jpg"); s=new Bullet(p, 20, 250, 50, 200, 20, 0); addKeyListener(this); …