absolllute / Mega-Hack-Pro-Future

Mega Hack Pro Suggestion & Issue Tracker
40 stars 5 forks source link

Suggestion: Trigger Preview #270

Open TheSillyDoggo opened 2 years ago

TheSillyDoggo commented 2 years ago

Trigger Preview would make it so that when a move trigger activates it will create a ghost copy of the object where it would be moved to:

Screenshot (35)

Brittank88 commented 2 years ago

I feel like this suggestion should be broadened to a full system of previewing tools, however, I also feel that this might be better applied to BetterEdit, rather than directly into MHv7. Would love to know your thoughts @absoIute.

TheSillyDoggo commented 2 years ago

No, this would be like a gameplay hack so you can see this while you are playing so say, On Geometrical Dominator you would be able to see where all of the platforms are moving to: (I used photoshop to create this image) Screenshot (37)

absoIute commented 2 years ago

it'd definitely be interesting to see but probably not something I'd look into for a while

so wonder if @HJfod likes the idea for betteredit

HJfod commented 2 years ago

I'm definitely up for adding this as an editor feature for BetterEdit. I think keeping general editor features in their own mod(s) that users can add/remove at will is better than cramming everything into one mod menu.

I'm not sure how this would be useful for gameplay. In the case provided (Geometrical Dominator) it could work, but as most levels nowadays utilize much more quantities of and much more complex movement, the visualizer would pretty much have to be powered by AI to provide actually useful information (i.e. show only moving blocks that matter, and where they are moving to). For the editor, where you can select what groups to isolate, I feel this would be more useful.

absoIute commented 2 years ago

Yeah that makes a lot more sense Mega Hack focuses a lot more on the playing experience so it is definitely more suited for BE. Since it'd be more an editor feature maybe it could also just show simple line paths like triggers w/ duration on do.

HJfod commented 2 years ago

The 'show movement line path' thing has been requested a ton ever since BE was started, I'm definitely going to add it but it requires figuring out how to actually calculate where to draw the line :P

TheSillyDoggo commented 2 years ago

The 'show movement line path' thing has been requested a ton ever since BE was started, I'm definitely going to add it but it requires figuring out how to actually calculate where to draw the line :P

Here's a way you could do it, Work out the centre position between the objects in the group id and make the line go up

HJfod commented 2 years ago

Yeah that isn't the problem though, the problem is when you have more than one move trigger targeting the same group at the same time and they have different easings, so you somehow have to figure out how to calculate where the line'll curve to :P I mean it's most likely just a matter of figuring out what the CC easing algorithms are and using those.

Brittank88 commented 2 years ago

Yeah that isn't the problem though, the problem is when you have more than one move trigger targeting the same group at the same time and they have different easings, so you somehow have to figure out how to calculate where the line'll curve to :P I mean it's most likely just a matter of figuring out what the CC easing algorithms are and using those.

Well, you could technically bruteforce it by simulating the movement of an object and literally noting its path every frame or something and then drawing through those points.

Would be better to leverage the actual algorithms though tbh. If you can find a way to compose the easing algorithms you could build functions that produce the right points to draw through without ever having to do a simulation, right?