Results 1 to 3 of 3
  1. #1
    Markmywoods is offline Member
    Join Date
    Feb 2016
    Posts
    14
    Rep Power
    0

    Default Making JavaFx game similar to PacMan lost :/ need help

    Ok so for our major program 3 we have to make a game called gobbler.

    So my new question is how to make the gobbler move once I've added him to the scene or borderpane ? I have a move method.

    The Gobbler will try to eat all the treats on the board without being caught by any of the
    BaddyPants. Special treats will be on the board which allows the Gobbler to eat the BaddyPants for
    a few seconds. You will design strategies for the BaddyPants to chase the Gobbler. The Gobbler will
    be controlled by the keyboard arrow keys.

    My Code:

    Making JavaFx game similar to PacMan lost :/ need help-image1.jpg

    Making JavaFx game similar to PacMan lost :/ need help-image2.jpg

    Making JavaFx game similar to PacMan lost :/ need help-image3.jpg



    Here is the UML diagram for the program:
    Making JavaFx game similar to PacMan lost :/ need help-uml.jpg

    Making JavaFx game similar to PacMan lost :/ need help-1.jpg

    Making JavaFx game similar to PacMan lost :/ need help-2.jpg

    Making JavaFx game similar to PacMan lost :/ need help-3.jpg
    Last edited by Markmywoods; 04-24-2016 at 01:12 AM. Reason: Adding new info

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Making JavaFx game similar to PacMan lost :/ need help

    You are not going to get much (if any) help posting all of that. And the attachment is rotated. So I recommend you provide just enough code to demonstrate what you have tried to get the gobbler to move and then someone may provide assistance. And please place your code between code tags. BB Code List - Java Programming Forum - Learn Java Programming

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    6

    Default Re: Making JavaFx game similar to PacMan lost :/ need help

    The X-location of a node is accessed via the method getTranslateX() and can be set via the method setTranslateX(). The same holds true for the Y-location.

Similar Threads

  1. Replies: 4
    Last Post: 02-12-2013, 12:47 PM
  2. Pacman Game
    By Hollowsoul in forum Java 2D
    Replies: 13
    Last Post: 07-16-2011, 11:31 PM
  3. Making PacMan game, need help!
    By Mondos in forum Java Gaming
    Replies: 14
    Last Post: 06-03-2011, 03:24 PM
  4. Replies: 1
    Last Post: 03-21-2011, 04:12 AM
  5. need help with pacman game!!
    By Newbie_Javaer in forum New To Java
    Replies: 2
    Last Post: 10-22-2009, 02:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •