Menu

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.

Show posts Menu

Messages - TokyoBlade

#1
Woah, thanks for that Scorpiorus  :)

I didn't know you needed to go into interactions...

My script now looks like this:

Code: ags
#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for room: Repeatedly execute
  
if (IsKeyPressed(13)==1) NewRoom(2);
}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE


BUT, when I test the game, the button still doesn't work  :o

Mysterious? Seems to be...
#2
Code: ags
#sectionstart roomstart
function start()
{
if (IsKeyPressed(13)==1) NewRoom(2);  
}  
}
#3
Code: ags
if (IsKeyPressed(13)==1) NewRoom(2);  


Thats the code i got in there. doesn't work.
#4
hmmm... Maybe I have a different version to everyone else? I have tried all your suggestions, but they dont work :( I save the room, test game and nothing happens.

Either that or I am missing something REALLY obvious  ???
#5
I didn;t use his script, as there isn't even a character in the room. It is a title page.
#6
Quote
Out of curiousity, what script did you have, and where did you put it? Did it return an error, or just not do anything?

I've deleted the script, but if it really matters i'll try and remember what i put. And there was no error, i tested game and it loaded up fine, but script did nothing.
#7
Thanks for the replies. And i think i missed something out in my first post. It is a title page, you press RETURN then it starts the game.

And LazyAshen, i tried that 'on_key_press' in room script thing, didn't seem to work :(
#8
so, how do you do it? I've tried many different ways but none work, i want it so only in that one room you can press it and it goes to next room. It only works so far in Global Scripts, but that affects every room  :-\  :'(
#9
Never Mind, I found out how... It was right in front of mee and i missed it.
#10
I cant seem to play any MIDI files. Do i have to save them in a certain place? Because I'm pretty sure i've put it in the right place, i put it in the same section as all the data files and room files. Do they need to be called 'Musicx.midi? (x being a number) because i did that, and  I did the code 'PlayMusic(1)' (if that even the right code)

Thanks in advance. 
SMF spam blocked by CleanTalk