Hamumu Software Hamumu Software Hamumu Software
Name
Password Register
Latest Journal update: Oct 23, 2017
Old 07-23-2006, 05:06 PM   #1
chaucer
Chaucertastic!
 
chaucer's Avatar
 
Join Date: Aug 2003
Location: Pale Blue Dot
Posts: 1,748
Default Messages in GM6?

How do I make it so that if the player bumps an object, it shows a little rectangle with some information on it?
__________________
"The HTCPCP server is a teapot. The responding entity MAY be short and stout" ~ 418 Client error
This morning's sermon: Jesus Walks on Water
This Evening's sermon: Searching for Jesus
"I'm really looking forward to that date [12/21/12] so I can laugh at them when the world doesn't end." ~SpiderPumpkin
chaucer is offline   Reply With Quote
Old 07-24-2006, 12:09 AM   #2
pizza
Extra cheesy
 
pizza's Avatar
 
Join Date: Jun 2005
Location: 6100'xx" 2538'xx"
Posts: 1,033
Default

To make the other object show the message:

In the Create event of that little object:
Code:
{
message=0
}
In the collision:
Code:
{
message=1
alarm[9]=10 //How long it shows the message
}
In the alarm[9]:
Code:
{
message=0
}
In the draw event:
Code:
{
if(message==1){
 draw_rectangle(x,y-30,x+32,y-10,true)
 draw_text(x+5,y-20,"Hello")
  //You know how to draw these things, right?
 }
}
__________________
pizza is offline   Reply With Quote
Old 07-24-2006, 06:30 AM   #3
chaucer
Chaucertastic!
 
chaucer's Avatar
 
Join Date: Aug 2003
Location: Pale Blue Dot
Posts: 1,748
Default

Is that even possible in unregistered?
__________________
"The HTCPCP server is a teapot. The responding entity MAY be short and stout" ~ 418 Client error
This morning's sermon: Jesus Walks on Water
This Evening's sermon: Searching for Jesus
"I'm really looking forward to that date [12/21/12] so I can laugh at them when the world doesn't end." ~SpiderPumpkin
chaucer is offline   Reply With Quote
Old 07-24-2006, 10:06 AM   #4
AtkinsSJ
Legs sold separately.
Moderator
 
AtkinsSJ's Avatar
 
Join Date: Aug 2004
Location: Computers!
Posts: 4,790
Default

Yeah.
For code actions, click on the Control tab, then the first icon under 'Code' is the code icon. Drag it in, and it'll open on its own.
__________________
Caution: may contain traces of nuts
AtkinsSJ is offline   Reply With Quote
Old 07-24-2006, 12:34 PM   #5
chaucer
Chaucertastic!
 
chaucer's Avatar
 
Join Date: Aug 2003
Location: Pale Blue Dot
Posts: 1,748
Default

Quote:
Originally Posted by pizza
To make the other object show the message:

In the Create event of that little object:
Code:
{
message=0
}
In the collision:
Code:
{
message=1
alarm[9]=10 //How long it shows the message
}
In the alarm[9]:
Code:
{
message=0
}
In the draw event:
Code:
{
if(message==1){
 draw_rectangle(x,y-30,x+32,y-10,true)
 draw_text(x+5,y-20,"Hello")
  //You know how to draw these things, right?
 }
}
Is all of that done in an "execute a piece of code" action?
__________________
"The HTCPCP server is a teapot. The responding entity MAY be short and stout" ~ 418 Client error
This morning's sermon: Jesus Walks on Water
This Evening's sermon: Searching for Jesus
"I'm really looking forward to that date [12/21/12] so I can laugh at them when the world doesn't end." ~SpiderPumpkin
chaucer is offline   Reply With Quote
Old 07-26-2006, 11:10 AM   #6
AtkinsSJ
Legs sold separately.
Moderator
 
AtkinsSJ's Avatar
 
Join Date: Aug 2004
Location: Computers!
Posts: 4,790
Default

Yeah. Each seperate bit is in an 'execute code' action, in the event Pizza says.
__________________
Caution: may contain traces of nuts
AtkinsSJ is offline   Reply With Quote
Old 08-04-2006, 07:41 AM   #7
AmazinX
Less Puny Mortal
 
Join Date: Jul 2006
Posts: 14
Default

Quote:
Originally Posted by pizza
To make the other object show the message:

In the Create event of that little object:
Code:
{
message=0
}
In the collision:
Code:
{
message=1
alarm[9]=10 //How long it shows the message
}
In the alarm[9]:
Code:
{
message=0
}
In the draw event:
Code:
{
if(message==1){
 draw_rectangle(x,y-30,x+32,y-10,true)
 draw_text(x+5,y-20,"Hello")
  //You know how to draw these things, right?
 }
}
Or:

Code:
<---->

Show message:

<---->
__________________
Eat your veggies! :P
AmazinX is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No visitor messages? .Blue Dwarf. Total Mayhem 3 09-05-2009 10:55 PM
End of world messages Ubernoob General Blabber 41 09-02-2009 08:53 AM
SUBliminal messAges aRe Underestimated cyberclone42 Total Mayhem 7 04-17-2009 01:23 PM
Random KoL messages thread 31337 Total Mayhem 0 06-15-2007 11:17 AM
hidden messages susan3001 General Blabber 3 05-14-2006 05:03 AM


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.
Site Map
Copyright 2017, Hamumu Games Inc.