Skip to content

Blueprint Reference

Reference for Blueprint assets under Content/SpaceShooterTemplate/Blueprints/. Default values were read from class defaults in the template project.

flowchart TB
  GM["BP_SpaceRockGameMode<br/>MaxAsteroidsToSpawn: 30 · bCanSpawnAsteroids: true<br/>StartGame() · StartAsteroidSpawn()"]
  Ship["BP_Spaceship<br/>SpaceshipLives: 3 · RefireTime: 0.2 · Acceleration: 1000"]
  Rock["BP_SpaceRock<br/>Health: 100 · AsteroidSize: ESpaceRockSize"]
  Cannon["BP_BaseCannon<br/>Fire()"]
  Projectile["BP_Projectile<br/>Speed: 10000 · Damage: 100"]

  GM -->|possesses| Ship
  GM -->|spawns| Rock
  Ship -->|components| Cannon
  Cannon -->|spawns| Projectile
ValueCannon component
NoneNo cannon selected (before Set Cannon Type)
SingleShotBP_SingleShot
TripleShotBP_TripleShot

Start Game calls Set Cannon Type on BP_Spaceship with the HUD selection.

ValueDefault scaleDefault speedScoreChild count
Small0.251400100
Medium0.75800203
Large1.25400304
ExtraLarge2.0100405

Maps on BP_SpaceRock: Asteroid Sizes, Asteroid Speeds, Asteroids Score, Asteroids Score Crit Multiplier, Child Asteroids, Rotation Rates, Explosion Effects.

FieldTypeDefault
High ScoreInteger0 (until first save)
FieldType
Particle EffectParticle system
Sound EffectSound base

Default Explosion Effects use P_Explosion_SmallP_Explosion_ExtraLarge and Explosion_Cue.

PropertyDefaultDescription
bCan Spawn AsteroidstrueMaster spawn toggle
Max Asteroids To Spawn30Concurrent rock limit
Current Asteroids0Runtime count (updated on spawn/destroy)
Random Timeset per timerSeconds until next spawn (Random Float in Range 1.03.0 on Event Graph)
Default Pawn ClassBP_SpaceshipPlayer pawn
Space ShipreferenceSpawned ship instance
FunctionDescription
Start GameHUD entry — Set Cannon Type, Start Spaceship, hide mouse cursor, begin spawn
Restart GameReset session after game over
Start Asteroid SpawnEnables spawn loop (Internal Enable Asteroid Spawn)
Spawn Next AsteroidSpawns one BP_SpaceRock if under cap
Get Asteroid Spawn Location And RotationScreen-edge spawn point + direction
Internal Update Asteroid CountPushes count to WBP_PlayerHUD
Get Save Game ManagerReturns BP_SaveGameManager
Set Cannon TypeStores cannon choice for the ship

Custom events on Event Graph: Start Asteroid Spawn, Spawn Asteroids, Spawn Next Asteroid.

PropertyDefaultDescription
Spaceship Lives3Remaining lives
Current Score0Run score
Current High Scoreloaded at startBest score this session
bEnable Continuos FiringtrueHold Fire to repeat
Refire Time0.2Seconds between auto shots
Acceleration1000Forward thrust
Turn Rate250Rotation speed
Restart Delay3Game-over delay
FOV100Camera FOV
Current Cannon TypeNoneSet before play via Set Cannon Type
ComponentRole
Space Ship Mesh ComponentSM_Spacehip mesh + collision
BP_SingleShot / BP_TripleShotWeapon components
BG MusicBackground audio
EventCalls
InputAxis MoveForwardMovement
InputAxis MoveRightRotation
InputAction FireInternal Fire Weapon
FunctionDescription
Internal Fire WeaponFire on Current Cannon
Internal Reduce Spaceship LivesDecrement lives; Show Life Hearts; death at 0
Internal Try Save GamePersist high score
Set Cannon TypeEnable BP_SingleShot or BP_TripleShot
Show Life HeartsUpdate WBP_PlayerHUD
DelegateWhen
On Ship DeadFatal hit / lives exhausted
On Game OverForwards to HUD
PropertyDefaultDescription
Health100Damage before Destroy Asteroid
Asteroid SizeSmallThis instance’s ESpaceRockSize
ComponentRole
Asteroid Mesh ComponentStatic mesh + scale from Asteroid Sizes
Rotating MovementSpin from Rotation Rates map
FunctionDescription
Apply Damage To AsteroidReduce Health
Asteroid Take DamageEntry from projectiles
Destroy AsteroidSplit (Child Asteroids), VFX, score, Show Score
Internal Get Next Random SizePick spawn size
Show ScoreSpawn WBP_HitDamage at screen position
PropertyDefault
Speed10000
Damage100

Mesh: SM_Missile. Uses Asteroid object channel for hits.

Property / functionValue / role
Projectile ClassBP_Projectile
FireSpawn projectile(s)
Firing SoundPlayed on fire
BP_TripleShotOverrides Fire to spawn three projectiles
PropertyDefault
Save Game Slot NameSpaceShooterSaveGame
Save Game User Index0
FunctionDescription
Load GameRead ST_SaveGame
Save GameWrite slot when high score improves

Widget switcher HUD TabChange Hud Tab from game mode.

FunctionDescription
Update High ScoreHigh Score Text
Update Asteroid CountAsteroids Count Text
Show Life HeartsLife display
Restart GameCalls game mode Restart Game
FunctionDescription
Show ScoreFloating points; Crit Animation when critical

Macro library: Deproject Screen To World, Break Vector 2D, screen-wrap helpers.

AssetPath
Game modeBlueprints/BP_SpaceRockGameMode
Player pawnBlueprints/BP_Spaceship
AsteroidBlueprints/BP_SpaceRock
ProjectileBlueprints/BP_Projectile
CannonsBlueprints/SpaceshipCannons/
SaveBlueprints/SaveGame/
HUDBlueprints/Widgets/WBP_PlayerHUD, WBP_HitDamage
Demo mapMaps/DemoMap