cheatking Posted May 24, 2009 Author Share Posted May 24, 2009 Ok for character movement This code:``` If X >= (576) Then rec.Left = rec.Left + (NewX - X) - 32 rec.Right = rec.Left + (NewX - X) + 32 X = 576 End If```Should draw the first 64 pixels (x axis) of the sprite when it reaches the right edge of the screen. But for some reason it dissapeers for a second.I have similar code on the left side of the screen and that works fine. Link to comment Share on other sites More sharing options...
dao Posted May 24, 2009 Share Posted May 24, 2009 what r you trying to do. Link to comment Share on other sites More sharing options...
cheatking Posted May 24, 2009 Author Share Posted May 24, 2009 well I have 96x96 sprites for my game and if they walk too far left they dissapeer. I'm trying to fix that. Link to comment Share on other sites More sharing options...
dao Posted May 24, 2009 Share Posted May 24, 2009 oh lucky howd you get 96 by 96 sprites and lol i have no idea how to fix that its probably something with the map Link to comment Share on other sites More sharing options...
cheatking Posted May 24, 2009 Author Share Posted May 24, 2009 @Zultar:> oh lucky howd you get 96 by 96 sprites and lol i have no idea how to fix that its probably something with the mapHow did I get 96x96? Source edits. :P Link to comment Share on other sites More sharing options...
dao Posted May 25, 2009 Share Posted May 25, 2009 lol i know its just that its hard to get that, or atleast it is for me Link to comment Share on other sites More sharing options...
cheatking Posted May 25, 2009 Author Share Posted May 25, 2009 if it wasn't for this one bug I would be able to post a tut Link to comment Share on other sites More sharing options...
dao Posted May 26, 2009 Share Posted May 26, 2009 You said it works to the left so did you try changing it to this:``` If X >= (576) Then rec.Left = rec.Right + (NewX - X) - 32 rec.Right = rec.Right + (NewX - X) + 32 X = 576 End If``` Link to comment Share on other sites More sharing options...
cheatking Posted May 26, 2009 Author Share Posted May 26, 2009 no didn't help. Link to comment Share on other sites More sharing options...
dao Posted May 26, 2009 Share Posted May 26, 2009 If X >= (576) Then rec.Left = rec.Right + (NewY - Y) - 32 rec.Right = rec.Right + (NewY - Y) + 32 Y = 576 End If?try that Link to comment Share on other sites More sharing options...
cheatking Posted May 26, 2009 Author Share Posted May 26, 2009 That won't work. It's the wrong axis. Link to comment Share on other sites More sharing options...
dao Posted May 26, 2009 Share Posted May 26, 2009 hmm lol idk then maybe admiral or unknown Link to comment Share on other sites More sharing options...
cheatking Posted May 27, 2009 Author Share Posted May 27, 2009 Bump. Cmon guys. This is annoying me! Link to comment Share on other sites More sharing options...
dao Posted May 27, 2009 Share Posted May 27, 2009 maybe you have to add something idk lol. you might be missing something i dont know why it wont work on the left side and then it works on the right. Link to comment Share on other sites More sharing options...
cheatking Posted May 27, 2009 Author Share Posted May 27, 2009 No t works on the left but not the right. Link to comment Share on other sites More sharing options...
dao Posted May 27, 2009 Share Posted May 27, 2009 so.. maybe its something else Link to comment Share on other sites More sharing options...
cheatking Posted May 27, 2009 Author Share Posted May 27, 2009 Not trying to be mean but can you stop posting unless you find a reason to the error? Link to comment Share on other sites More sharing options...
cheatking Posted May 30, 2009 Author Share Posted May 30, 2009 Bump. Link to comment Share on other sites More sharing options...
vrage Posted May 30, 2009 Share Posted May 30, 2009 X = 576 this is pixel based ? :huh: Link to comment Share on other sites More sharing options...
cheatking Posted May 30, 2009 Author Share Posted May 30, 2009 yes it is. Link to comment Share on other sites More sharing options...
cheatking Posted June 6, 2009 Author Share Posted June 6, 2009 @Green_Bottlesâ„¢ :> link=topic=45005.msg460477#msg460477 date=1243691315]> Bump. Link to comment Share on other sites More sharing options...
cheatking Posted June 7, 2009 Author Share Posted June 7, 2009 I give up.I was going to make a tut and everything… Link to comment Share on other sites More sharing options...
dao Posted June 7, 2009 Share Posted June 7, 2009 i have some stuff that can help you.. ill pm u it Link to comment Share on other sites More sharing options...
anasky Posted June 7, 2009 Share Posted June 7, 2009 @Dope :> link=topic=45005.msg455934#msg455934 date=1243201422]> Ok for character movement This code:> ```> If X >= (576) Then> rec.Left = rec.Left + (NewX - X) - 32> rec.Right = rec.Left + (NewX - X) + 32> X = 576> End If> ```Should draw the first 64 pixels (x axis) of the sprite when it reaches the right edge of the screen. But for some reason it dissapeers for a second.> > I have similar code on the left side of the screen and that works fine.rec.Right = rec.Leftyeah…that will do it...not sure, but it might be that you need rec.Right = rec.Right instead of rec.Left 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