Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Resources

Notices
For all updates, view the main page.

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 (04:53 AM).
Bleack
Beginning Trainer
 
Join Date: Oct 2011
Gender: Male
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.
  #2    
Old October 25th, 2011 (06:49 AM).
dragonnite's Avatar
dragonnite
The 17 year old programer. Now byte off
 
Join Date: Dec 2009
Location: 5cm meters from somthink with an IDE
Gender: Female
Nature: Calm
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 (07:13 AM).
Bleack
Beginning Trainer
 
Join Date: Oct 2011
Gender: Male
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 (07:19 AM).
dragonnite's Avatar
dragonnite
The 17 year old programer. Now byte off
 
Join Date: Dec 2009
Location: 5cm meters from somthink with an IDE
Gender: Female
Nature: Calm
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:39 PM.