palistov 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,208 
	Threads: 67 
	Joined: Mar 2011
	
 Reputation: 
57
		
	 | 
	
		
			
RE: Changing item interaction? 
			 
			
				Not sure if you got everything you needed to know from flamez. 
 
You'll need 3 separate entities of the rock. 
 
1. The inventory item (entity sub-type: Item > Puzzle) 
2. The rock sitting in the stand (entity sub-type: Object > Static) 
3. The rock you can throw (entity sub-type: Object > Grab) 
 
Make those in the ModelEditor. Note that the inventory item MUST have an image file or you will be unable to pick it up. When you use the rock item (#1) on the stand, set entity #2 active. When you use your other item on this rock #2, set rock #2 inactive, and set #3 active. Then the player can toss it around. 
 
Noticed you're quite new to the forums, so I'll go into a little more detail. When you're creating these entities, go to Settings > User-Defined Variables. There you can set the entity's type and sub-type. Most entity types (the ones I listed above definitely do) require a body. Use the shape tool (press 5), then select your shape and create a body. You'll want #2 and #3 placed in the level editor, and set in-active. Then you set them active via the script when the player performs the appropriate actions.
			 
			
			
 
			
				
(This post was last modified: 03-09-2012, 09:42 AM by palistov.)
 
				
			 
		 |  
	 
 | 
	| 03-09-2012, 09:39 AM  | 
	
		
	 |