This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Goldengamer111 on Sun 23/03/2008 17:24:30
cInvis works! It's moving the player slightly to the side, but he is moving off the region! Thanks, lemmy101! Thanks for the sugestion, Rui 'Trovatore' Pires! By the way, how can I put the "(Solved)" in the thread title?
RemoveWalkableArea(1); // this will stop the walkable area over the region your character is on
//from being a walkable area. To help us find out where the closest walkable area is now that's not an option...
// Then move your dummy invisible character to the place your character is...
cInvis.x = cPlayer.x;
cInvis.y = cPlayer.y;
// Since the walkable area they're stood on no longer exists, if you call:
cInvis.PlaceOnWalkableArea();
// It should, in theory, move the invisible character to the closest pixel that's on a valid walkable area using
// CJ's closest point code now that the disabled region is not an option. Then do...
RestoreWalkableArea(1); // This should reinitialise the walkable area the player is stood on so he can walk on it freely again.
// Then finally, you make the player walk to wherever the dummy character was moved to:
cPlayer.Walk(cInvis.x, cInvis.y);
QuotecMia.ChangeRoom(12, 100, 100);
As far as I can see, this only affects some screen transition types and only the Direct3D driver. Has anyone had this problem with the DX5 driver?
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.096 seconds with 14 queries.