Resources Everything you need to help make your game can be found in here. You can also post your own resources. Remember to give credit!
The thread revival limit does not apply here.

Closed Thread
 
Thread Tools
  #1    
Old October 25th, 2011 (4:53 AM).
Bleack Bleack is offline
     
    Join Date: Oct 2011
    Gender: Male
    Posts: 2
    I'm trying to draw an image on the screen when the player uses an item in Poccil's Starter Kit. I created an ItemHandler for the item, but that's pretty much all what I've got so far. I've tried some snippets and tutorial found on the internet and looked trough the RGSS Reference manual but couldn't really figure it out.

    Relevant Advertising!

      #2    
    Old October 25th, 2011 (6:49 AM).
    PinkCatDragon's Avatar
    PinkCatDragon PinkCatDragon is offline
    The 17 year old programer. Now byte off
       
      Join Date: Dec 2009
      Location: 5cm meters from somthink with an IDE
      Gender: Female
      Nature: Calm
      Posts: 371
      Try useing
      $picture=Sprite.new
      $picture.x=100
      $picture.y=100
      $picture.z=99999999
      $picture.bitmap=RPG::Cache.picture("insert graphic name here")
        #3    
      Old October 25th, 2011 (7:13 AM).
      Bleack Bleack is offline
         
        Join Date: Oct 2011
        Gender: Male
        Posts: 2
        Wow, this is just a little embarrassing. The first hit on google contained a similar snippet:
        PHP Code:
        @image Sprite.new
        @
        imate.bitmap RPG::Cache.picture("name of picture"
        And explicitly told me there should be a @ in front of the variable. But that resulted in an error , so I didn't bother to look any further. But it was so close! I really should look into the syntax

        Thanks for the help dragonnite!
          #4    
        Old October 25th, 2011 (7:19 AM).
        PinkCatDragon's Avatar
        PinkCatDragon PinkCatDragon is offline
        The 17 year old programer. Now byte off
           
          Join Date: Dec 2009
          Location: 5cm meters from somthink with an IDE
          Gender: Female
          Nature: Calm
          Posts: 371
          a @ makes it to the event page only but $ is global and is used anywhere
          oh to get rid of picture use $picture.Dispose
          Closed Thread
          Quick Reply

          Sponsored Links
          Thread Tools

          Posting Rules
          You may not post new threads
          You may not post replies
          You may not post attachments
          You may not edit your posts

          BB code is On
          Smilies are On
          [IMG] code is On
          HTML code is Off

          Forum Jump


          All times are GMT -8. The time now is 11:09 AM.