Quicksand Effect?

Posted By: MegaMarioDeluxe

Quicksand Effect? - 09/09/08 22:38

Hi.

I'm working on my own game, and I would like to know if it's possible to make a entity like Quicksand, that slowly pulls the player under the surface. I've done the basics like disable jump and movement, but I would like to know how I would go about coding this event, so when the player collides with it, it pulls him/her under.

I'm using ScriptEd from 3DGS v6.x Pro, so if anyone could write me the code needed, I'll credit you. (EDIT: A5 Templates, that is, A6 is the actual version of the Engine, not the templates I'm using.)

Thanks in advance.
Posted By: TechMuc

Re: Quicksand Effect? - 09/09/08 23:55

1) everything is possible
2) v6.x he? i love legal versions...
3) check the manual for event_impact / event_entity. Entities can be moved downwards by lowering their z-axis value (my.z -= 8*time_step; for example).
Posted By: MegaMarioDeluxe

Re: Quicksand Effect? - 09/10/08 07:44

Sounds interesting. I'll give it a go.
Posted By: MegaMarioDeluxe

Re: Quicksand Effect? - 09/10/08 22:23

Gah, didn't work. I was using the A5 templates. Maybe I should use the actual A6 templates.
© 2024 lite-C Forums