Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset certain entities when off-screen by a set distance #71

Open
Jigoku opened this issue Sep 8, 2016 · 2 comments
Open

Reset certain entities when off-screen by a set distance #71

Jigoku opened this issue Sep 8, 2016 · 2 comments

Comments

@Jigoku
Copy link
Owner

Jigoku commented Sep 8, 2016

Problem:
If a player activates falling logs, and then backtracks, they may not be able to complete the level.... so make these reset when off screen.

@Jigoku
Copy link
Owner Author

Jigoku commented Feb 17, 2018

physics.lua

if not world:inview(trap) then
	table.remove(trap, i)
end

change to something like

if not world:inextendedview(trap) then
	trap.x = trap.xorigin
	trap.y = trap.yorigin
	trap.falling = false
end

Although another switch should be added, trap should not infinitely fall. Once off screen in falling state, don't move the undrawn trap.

@Jigoku
Copy link
Owner Author

Jigoku commented Feb 22, 2018

Not much of a problem for now, as mapstates have been implemented (resets everything to checkpoint), removing milestone for now.

@Jigoku Jigoku removed this from the 0.2 milestone Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant