Skip to main content

News

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - scojin

1
Script Support / Surface Questions
Okay, so I'm making a quest-log type menu that is semi-dynamic, meaning they have a set order and are organized by location, but don't appear until activated.
Like so:
Store
A
B
C
House
A
B
C
D
Forest
A
C
D

So basically I have a function that checks, orders, and creates the selections for the menu and then returns the selection order and the selection display in an object. The display is created basically like so:
Code: [Select]

object.image = new Surface(w,h);
//draw header
prim.blit(object.image,x,y,header);
//draw quests
font.drawText(object.image,x,y,whateverquest.title); //draw title
prim.blit(object.image,x,y,whateverquest.status);         //draw icon

//--------------------------------------------

object.selection = selection_array;
object.display = object.image.toImage();

return object


The problem is when I call the menu to be displayed, it only displays the title(from drawText) and not the header or icon(from prim.blit). This is my first go with surfaces, so maybe I'm just not using them right, or maybe I'm missing something?
Thanks in advance.
2
Hellos and Byes / hey pple
Hello everyone.
I'm a lurker from out of the shadows. The minisphere and Sphere Studio are amazing additions to the engine! I'm not particularly new to Sphere, but it's been awhile since I've used it. I dabbled in GameMaker for awhile, but I find that Sphere just has this curious appeal to it. I'm not quite sure what it is. I really like the whole direction of using Javascript for making games. While I'm no expert programmer by any means, Javascript is what I've used the most.
Anyway, I have a project going on that I'd really like to finish. So, I figured I could ask a question every once in awhile and get some various answers, opinions, and views on the subject that could help me out and potentially help someone else.