Gillispie Posted July 17, 2009 Author Share Posted July 17, 2009 i was wondering if there was any way that I could make mirrors that will actually show the reflection of players and NPCs that pass by them in my game. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 17, 2009 Share Posted July 17, 2009 Probably not.But don't listen to me.IM INSANE!!!!!!(according to recent online polls) Link to comment Share on other sites More sharing options...
Diskmaster Posted July 18, 2009 Share Posted July 18, 2009 Actually, this would be very hard and very frustrating, but possible! Ok, first off, you need to learn how to use this:Call SetTile( mapper, x, y, xset, yset, tileset, layer), it is pretty easy BUT you will have to have two mirrors, one with a person in it, and one with no person in it. Now, you need to start the scripting, first, at the foot of the mirror, put a scripted tile that contains this script to set the tile to the mirror with a reflection and in the squares around it, you have to put a scripted tile that changes the mirror back! This may seem hard, but, the more simple you want it to be, the easier it will get, try something like this:Case #Call SetTile( Map#, MapX, MapY, Xset, Yset, Tileset#, layer) Layer: 1 for ground, 2 for mask, 4 for mask 2, I think you get itand then the tiles around it, the same thing but change the variables to change it back, I may have just confused you to death, but if I helped, then Good!! Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted July 18, 2009 Share Posted July 18, 2009 thats not how I'd do it.There is a command called "bitblt" that copies pixels from one surface and pastes them onto another surface. Basically, just add onto the end of the main loop a check for that map and do a bitblt copy Link to comment Share on other sites More sharing options...
Diskmaster Posted July 18, 2009 Share Posted July 18, 2009 uh, I never new about this… that could be very usefull and is way better than my method Link to comment Share on other sites More sharing options...
Gillispie Posted July 18, 2009 Author Share Posted July 18, 2009 thanks andhow do i use the "bitblt" command Link to comment Share on other sites More sharing options...
Bobosk Posted July 18, 2009 Share Posted July 18, 2009 It's sourced… HM don't be giving source solutions to questions in teh scripting board unless completely necessary... please... Link to comment Share on other sites More sharing options...
Ridrik Posted July 23, 2009 Share Posted July 23, 2009 It's hard to do it in source, needs lots of editing and getting it to work. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now