Problem with Entity Pick

Blitz3D Forums/Blitz3D Programming/Problem with Entity Pick

Guy Fawkes(Posted 2011) [#1]
Hi all, can someone please take a look through my code and tell me how to fix this glitch that sometimes happens when my player is close enough to talk to a character?

This video is a download from my website.

It is a video of the glitch.

http://imageposeidon.com/EntityPickGlitch.mpg
Here is the ENTIRE main loop, which should be MORE than enough to figure out whats going on here.

Code:



Thanks ALOT! :)


Ross C(Posted 2011) [#2]
I have no idea with this. There's no code to run. Looks like there is a problem with a flag variable you have, switching between modes maybe. It could be to do with your tweening code. I never use tweening code, so I don't know much about that.


Guy Fawkes(Posted 2011) [#3]
I see. Well I sent you the code in your email :)


Ross C(Posted 2011) [#4]
Hmmm, ok. Well i don't have that problem when running your code at all. Everything seems smooth and there's no jerking like in your movie.

I don't understand this line:

;Stops glitch
If lp<>0 And lp = 0 Then lp = 0


if lp is NOT EQUAL to 0 then lp cannot every = 0, so that line will never run.


Guy Fawkes(Posted 2011) [#5]
thats because i had to get it in the exact right position to show the glitch


Ross C(Posted 2011) [#6]
I can't see the glitch happening...


Guy Fawkes(Posted 2011) [#7]
its REALLY hard to do


Ross C(Posted 2011) [#8]
I'll try again later then. I'm coding my textbox adventure. So, i'll have a fiddle about and see if I can trigger it.


Guy Fawkes(Posted 2011) [#9]
thanks ross! :)

Also, check in your general post ^^