Announcement

Collapse
No announcement yet.

Level blueprint or Blueprint class for chess piece?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Level blueprint or Blueprint class for chess piece?

    Hi there, I'm used to more traditional programming so doing it visually using blueprints is new to me.

    I'm working on a program where the user can move around objects with their mouse. No physics or effects or anything special like that. Just mouse down, move, mouse up.

    It seems like a blueprint class is best for objects that need to *do* something and that level blueprints are more for static objects.

    Am I wrong here or which is best?

    #2
    You should indeed use a separate Blueprint Class for your chesspieces.
    Maybe introduce a function "isValidMove" in an abstract class "ChessPiece" which has Current Location and DestinationLocation (From drag/drop) as an input. You can then override this function for every chess piece differently.

    Comment

    Working...
    X