Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Pooh

How do i make a "Spring" actor?

Question

Basically, i want to make sort of a spring actor. When picked up, it would launch the player in the air. How do i do that?

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1

No.  Since it would then be an item in the player's inventory, it would thrust the player.

 

As an example, here is the alt-fire of a weapon I made, which makes the player fly.  It calls A_ChangeVelicity twice, once to stop the player from falling if he is, then again to thrust him upwards.

	AltFire:
		NECR BC 3
		TNT1 A 0 A_JumpIf(velz >= 0, "NotFalling")
		TNT1 A 0 A_ChangeVelocity(velx,vely,0,CVF_REPLACE)
		//pass through
	NotFalling:
		NECR D 7 A_ChangeVelocity(0,0,20)
		NECR C 3
		NECR B 3
		NECR A 3 A_ReFire
		Goto Ready

 

Share this post


Link to post
  • 0
4 minutes ago, Empyre said:

No.  Since it would then be an item in the player's inventory, it would thrust the player.

 

Ok, so it will work with inventory.autoactivate, right?

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×