Re: Project ZeC (My Zelda-esque Clone)
Reply #45 –
hmm, the shop maps are only one layer with 4 lines of code embedded. As an example the current shop map I am editing has...
On Enter Map:
GenerateShop("ShopKeeper2", "Bomb", "Key", "shopHeart");
SetRenderScript("ShopTxt()");
On Leave Map:
SetRenderScript("emptyfunc()");
DstryTmp();
GenerateShop() creates all the entities, sets thier position and associates the proper activation scripts per entity for purchasing the items.
ShopTxt() gets the generated items from a temporary variable, draws the ruppee, prices and shopkeeper message.
emptyfunc() is just that... An empty function defined to prevent certain things from occurring.
DstryTmp() clears the values of the temp item variables.
I can attempt to edit that in somewhere in the script. Though, I'm not entirely sure where.
Although, just now while write this post I had a thought... I could change the position of the prices so they are above the items and not below. That would be just changing the y value of the entities instead of recoding redrawing the player just for the shop functions. Not sure how that would look though.