Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Help changing strings.

    Hello,RiokuTheSlayer here.

    I'm making a game in 2D java at the moment,and wondered if it was possible to change a string that originated in File A from File B.(A an B just being examples.)

    I'm using this in a sort of way as the blocks from Minecraft:from what I've seen It has base classes,which are "blank" (a default value for all strings/int or whatever it uses),and then the files for the actually block/NPC change those or something.

    I just thought this would be useful,since the game is going to have many different types of "blocks".

    If it's just right in my face,i'm sorry. but I've been trying "extends" and "implements" in the public class A (extends or implements here),but it doesn't seem to be working!

    If you'd like my exact code,i'll be happy to attach it.

  2. #2
    Ronin is offline Senior Member
    Join Date
    Oct 2010
    Posts
    335
    Rep Power
    4

    Default Re: Help changing strings.

    Hi Rioku, welcome to the forums.

    Your code would be helpful. I can understand what you want to do but an answer would be easier to provide in the correct context and with reference to your existing work.

    Regards.

  3. #3
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Help changing strings.

    Ah,well,i'm uploading the code as-is right now.I'm a bit new,but pretty much all i need it this,and then i can get the rest of the game.

    http://www.mediafire.com/?0lvh5a4mhq1zey4

    Source code. (I am using eclipse.)
    Last edited by RiokuTheSlayer; 04-27-2013 at 10:40 PM.

  4. #4
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Help changing strings.

    Oh,fixed the if(left) part on the graphics section. otherwise it'd only print while going left. even then,it still wont.

  5. #5
    Join Date
    Apr 2013
    Location
    Your face.
    Posts
    92
    Rep Power
    0

    Default Re: Help changing strings.

    re-uploading it with a few changes.... if you could,i'd also like help with printing images.

    Edit: Nvermind,it was trouble with the printing method. images are good now
    Last edited by RiokuTheSlayer; 04-27-2013 at 11:16 PM.

Similar Threads

  1. Changing the Value of a map
    By Whisperer in forum New To Java
    Replies: 4
    Last Post: 10-05-2011, 02:31 PM
  2. Changing 8 to eight...need help!
    By adjit in forum New To Java
    Replies: 31
    Last Post: 06-18-2011, 09:47 PM
  3. changing letters in strings
    By dienesh77 in forum New To Java
    Replies: 8
    Last Post: 02-17-2011, 01:56 PM
  4. Changing the index
    By Drayfe in forum Lucene
    Replies: 0
    Last Post: 09-15-2010, 06:28 PM
  5. Replies: 0
    Last Post: 08-14-2010, 10:09 AM

Tags for this Thread

Posting Permissions

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