Jump to content
  • 0

How do i make a "Spring" actor?


how to delete account

Question

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...