The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Resources
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

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  
Unread October 25th, 2011, 12:53 PM
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  
Unread October 25th, 2011, 02:49 PM
dragonnite
pokemon ranger rank 10
 
Join Date: Dec 2009
Gender: Male
Nature: Sassy
Try useing
$picture=Sprite.new
$picture.x=100
$picture.y=100
$picture.z=99999999
$picture.bitmap=RPG::Cache.picture("insert graphic name here")
  #3  
Unread October 25th, 2011, 03:13 PM
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  
Unread October 25th, 2011, 03:19 PM
dragonnite
pokemon ranger rank 10
 
Join Date: Dec 2009
Gender: Male
Nature: Sassy
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 UTC. The time now is 06:59 PM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.