on screen dialog

View: New views
14 Messages — Rating Filter:   Alert me  

on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm having a bit trouble figuring out how to place text on the screen <blush>

I have a door in a cubic room on the 90 degree image thats locked.. how do i go about adding a message at the foot of the screen that its locked?

Re: on screen dialog

by Andrea Viarengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NigeC <nigec999 <at> gmail.com> writes:

>
> how do i go about adding a message at the foot of the screen?
>

In effects, display a textual message overlaid a cubic node isn't a
very simple task in Pipmak....it isn't difficult, but not immediate..

I wrote a page in the Wiki with my solution:

http://pipmak.sourceforge.net/wiki/index.php/Display_message_text

I hope this can help you.

-Andrea

> -----
> http://nigecstudios.co.uk NigeC Studios





-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrea
Is there any chance of seeing it in context?
my little test project is here (6meg ouch): http://www.nigecstudios.co.uk/games/hallway.rar
either door will do as they are both locked, one door never opens the one by the keypad will (when i figure out that bit)

Re: on screen dialog

by Andrea Viarengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi NigeC,

Ok, I have posted hallway.zip here:

   http://andrea.viarengo.googlepages.com/hallway.zip

with these modifications:

1) Added node 100 to use as overlayed node to show messages
2) Added recalling overlayed node where it needed
3) Added an hotspot to the keypad to permit to return to the hallway
   and open the door if you have entered the correct number.
4) Added simple room 6 behind the unlocked door.

Is this what you needed?

Bye

-Andrea







-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrea
that is truely awesome and just what I needed, thank you!
Coding isn't my strong point so i learn better from example, i really appreciate you taking the time to help :)
 Thanks again







Re: on screen dialog

by Andrea Viarengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You are welcome!

Bye

Andrea




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Andrea Viarengo wrote:
You are welcome!

Bye

Andrea
If you want to add the demo as an example for the wiki topic your welcome to, I've altered the cursors so they now make a little bit more sense and the othere door has dialog too
http://www.nigecstudios.co.uk/games/halway_demo.rar is a working demo under windows i can do it as a pipmak resource if that better?

Re: on screen dialog

by Andrea Viarengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear NigeC,

1) I think that the best place to publish your little demo would be in
   the Pipmak Showcase (if Christian will be agree), because it could
   be very usefull for newbies (the official Pipmak Demo is more
   complicated because it want to show all Pipmak features...)

2) I think that the best way is to publish just the file hallway.pipmak
   without engine (which is downloadable from the official site), so
   everyone will try the demo in its platform.

3) I have modified hallway.pipmak again, so if you go back from the beach
   to the hallway (placing the cursor down), you will be transported to
   the room with the door you have overstepped (this could demostrate an
   use of a sort of "conditional" jump....) and the writing is deleted.

   I have update http://andrea.viarengo.googlepages.com/hallway.zip

What do you think? And Christian too?

Bye

Andrea




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrea

I agree the showcase section would be better, with an explaination on what its for :)

and yes it makes more sense to have it as a .pipmak file rather than a single OS

the alterations are a lot better, I made my copy so the door near the picture never opened but displayed a message, thanks to you i'm now confident using the text system.. i wouldn't of figured it out lol, i might try to add sound to the door handles so its either a locked or opening sound

If you can think of any other useful demo's i'll gladly do the demo resources, rather than trying to do a full game i'm building mini levels so problems are broken down into small segments

take care
Nige

edit now have sound on the door handles :)

Re: on screen dialog

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Andrea and Nige

Andrea Viarengo wrote:
> I wrote a page in the Wiki with my solution:
>
> http://pipmak.sourceforge.net/wiki/index.php/Display_message_text

Thanks, that looks very useful. I agree that it's not quite
straightforward to achieve such things in Pipmak, since it only provides
the basic building blocks for it. If we can identify areas where it
would be useful to include higher-level (but still generic enough)
functionality directly in Pipmak, built upon the existing low-level
capabilities, I'm open to that.


NigeC wrote:
> Andrea Viarengo wrote:
>> 1) I think that the best place to publish your little demo would be in
>>    the Pipmak Showcase (if Christian will be agree), because it could
>>    be very usefull for newbies (the official Pipmak Demo is more
>>    complicated because it want to show all Pipmak features...)
>
> I agree the showcase section would be better, with an explaination on what
> its for  :)

If you consider this project finished, sure, we can add it to the
showcase page. Perhaps with a link to the wiki page about it. Just give
me a download link, and if you want, a preferred screenshot and text
that matches the style of the existing entries (otherwise I'll come up
with those myself).


> and yes it makes more sense to have it as a .pipmak file rather than a
> single OS

That's what I would recommend for such a demo too.

In addition, for the case of a full release that includes Pipmak, I
would recommend renaming Pipmak.exe to the name of your game, maybe
giving it a new icon, and moving the readme files into a subfolder.
Otherwise users might be a bit confused about what files belong to what
and what to double-click. (I don't insist that you include History.txt
and To Do.txt, but Acknowledgements.txt, COPYING.txt, and Read Me.txt
should be there because of the license information in them. Perhaps I
should think about embedding them im Pipmak somehow, so that you can get
rid of all external files.)


> If you can think of any other useful demo's i'll gladly do the demo
> resources, rather than trying to do a full game i'm building mini levels so
> problems are broken down into small segments

I don't have any specific ideas at the moment, but I like the idea.
We're indeed lacking in the area of tutorials and simple example
projects. Thanks for the offer!

  -Christian


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christian Walther wrote:
If you consider this project finished, sure, we can add it to the
showcase page. Perhaps with a link to the wiki page about it. Just give
me a download link, and if you want, a preferred screenshot and text
that matches the style of the existing entries (otherwise I'll come up
with those myself).
I now have sound attached to the door handles, i was going to look at adding opening animation.. altho i didn't compansate for that with the model, so i might leave that until next time  
I'll also comment the node.LUA's so it explains what does what, and i need to add one of Andrea's alterations to my version

This little exercise does address a number of points dispite its size so hopefully it'll help a few people:)

I'll have a think what was bothering me and see if i can come up with something else, but I'll do it at 512X512 to keep the file sizes down  ;)





Re: on screen dialog

by Andrea Viarengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christian Walther <cwalther <at> gmx.ch> writes:

>
> would be useful to include higher-level (but still generic enough)
> functionality directly in Pipmak, built upon the existing low-level
> capabilities, I'm open to that.
>

What do you think about include a node like what I have proposed in the wiki
directly into the file "Pipmak resources"?
and add a high level command like:

pipmak.message{"message to write", delay=..., font=...., x=..., y=.... etc...}

similar to pipmak.print()

-Andrea
 





-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users

Re: on screen dialog

by NigeC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I update my version with sound effects on the doors and a beep on the alarm when the code is right, added Andrea fix to remove text, it now has a start screen, I've also added an image and a text readme
http://www.nigecstudios.co.uk/games/hallway.rar

What do you think about include a node like what I have proposed in the wiki
directly into the file "Pipmak resources"?
and add a high level command like:

pipmak.message{"message to write", delay=..., font=...., x=..., y=.... etc...}

similar to pipmak.print()
that does sound a lot better.. i assumed thats how it worked,blush> which explain why i never got anywhere lol

Re: on screen dialog

by Christian Walther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andrea Viarengo wrote:
> What do you think about include a node like what I have proposed in the wiki
> directly into the file "Pipmak resources"?
> and add a high level command like:
>
> pipmak.message{"message to write", delay=..., font=...., x=..., y=.... etc...}
>
> similar to pipmak.print()

Sounds good. Could you prepare such a thing?

  -Christian


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pipmak-Users mailing list
Pipmak-Users@...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users