forked from Cavemanon/SnootGame
move insult layers function into misc_definitions
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
init python:
|
||||
# function for insult layers
|
||||
import random
|
||||
def showCG():
|
||||
files = ["text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9"]
|
||||
length = len(files)
|
||||
picked = random.randint(0,length - 1)
|
||||
fileName = files[picked]
|
||||
renpy.show(fileName, at_list=[randPosition])
|
||||
|
||||
|
||||
transform randPosition:
|
||||
alpha 0.0
|
||||
xalign random.uniform(0.2,0.8)
|
||||
|
Reference in New Issue
Block a user