Discord
Login
Community
DARK THEME

need help creating visuals (such as a starting screen) for my RPG battle system prototype

I've tried using several different things such as Tinker, objectLIB, and turtle, but none have them worked please help.

I use python BTW

Are you using microstudios? Because the microstudio API should have everything you need.

yes

you can refer to this example, though it is not in python.

:: https://microstudio.dev/i/gurg0/sse/ ::

something in python might look like this:

def init():
    global playing 
    playing = False # usually you would use a string value to define playing like playing = "game" for more specific modes.

def update():
    global playing 
    if mouse.press:  
        playing = not playing # flips current value of playing

def draw():
    screen.clear()
    if playing:
        draw_game() # draws the game if playing is true
    else:
        draw_start() # draws the start screen if playing is false

def draw_start():
    screen.drawText("Start", 0, 0, 25, "#fff")
    screen.drawText("Click to play", 0, -15, 10, "#fff")

def draw_game():
    screen.drawText("Game", 0, 0, 25, "green")
    screen.drawText("Click to go back", 0, -15, 10, "green")

this should be good, unless of course this isn't what you needed.

this might actually work. thank you:)

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community