Alt X in WAE!

Discuss the games (no level solutions or off-topic, please).

Moderators: ~xpr'd~, tyteen4a03, Stinky, Emerald141, Qloof234, jdl

Post Reply
User avatar
Lazy Loof
Rainbow Wizard
Posts: 460
Joined: Sun Nov 27, 2016 2:37 pm
Contact:

Alt X in WAE!

Post by Lazy Loof » Sat May 25, 2019 4:56 am

EDIT: SORRY TOPIC WAS POSTED IN WRONG CATEGORY!

Everyone knows the Alt-X feature in RTW, which moves the camera. However, we had seen that WA lacked this functionality...

This is incorrect, WA also has the same feature, but differently.

Here's the code for that:

Code: Select all

Function CameraControls()
	; Camera Controls
	; TurnControl On and Off
	If KeyDown(56) And KeyDown(45) And AltX\KeyPressed=False ; Alt-X
		AltX\KeyPressed=True
		If CameraControl=True
			AltX\InUse=False
		Else
			AltX\InUse=True
		EndIf
	Else
		AltX\KeyPressed=False
	EndIf
	; Use NumPad to Control
	If False
		If KeyDown(75) 
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,-0.1,0,0
		EndIf
		If KeyDown(77) 
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,0.1,0,0
		EndIf
		If KeyDown(72) 
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,0,0,0.1
		EndIf
		If KeyDown(80) 
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,0,0,-0.1
		EndIf
		If KeyDown(73)
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,0,0.1,0
		EndIf
		If KeyDown(81)
			If AltX\Reset = 0 StoreCameraSettings()
			TranslateEntity Camera,0,-0.1,0
		EndIf
		If KeyDown(71)
			If AltX\Reset = 0 StoreCameraSettings()
			TurnEntity Camera,1,0,0
		EndIf
		If KeyDown(79)
			If AltX\Reset = 0 StoreCameraSettings()
			TurnEntity Camera,-1,0,0
		EndIf
		If KeyDown(181)
			If AltX\Reset = 0 StoreCameraSettings()
			TurnEntity Camera,0,1,0
		EndIf
		If KeyDown(55)
			If AltX\Reset = 0 StoreCameraSettings()
			TurnEntity Camera,0,-1,0
		EndIf
		If KeyDown(76) And AltX\Reset=1
			RestoreCameraSettings()
		EndIf
		
	EndIf
	
End Function


However, due to some bug, it doesn't works! Here just set the False in code to AltX\KeyPressed and it will work!

Press Alt+X and then press
- 7 (on the num pad) to tilt the camera upwards
- 1 (on the num pad) to tilt the camera downwards
- Multiply * (on the num pad) to tilt the camera right
- Divide / (on the num pad) to tilt the camera left
- 5 to re-center the camera

The latest versions of WA Editor fix this bug!
Attachments
alt-x.png
alt-x.png (713.89 KiB) Viewed 4422 times
Previously known as Aryan101
Post Reply