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 - blenderhead

#1
General Discussion / Re: Free Steam keys!
Sun 24/04/2016 02:48:09
Resonance:

Spoiler
E7???-YNH3J-JF3KM
[close]

??? = The second tab of these forums.

Enjoy :)
#2
i assume if we use the RoN resources we have to make it a RoN game ?
#3
Thanks Khris, problem solved. :)
#4
Code: ags
// room script file

function hHotspot1_AnyClick()
{

   if (code == 0) code++;
 
   
  else code = 0;
}

function hHotspot2_AnyClick()
{
   if (code == 1) code++;
 beef.Visible=true;
   
  else code = 0;
}

}


I'm still a beginner with code and can't see why this doesn't work.
clicking on hotspot2 only after clicking on hotspot1 should have the object(beef) visible, yet i'm getting a 'parse error at 'else'' error at the second 'else'
it seems to work fine with out the 'beef.Visible=true;' line.
#5
Ah right i get it now, yes it was fading from the phone which i didnt want.

i have it now, thanks again.
#6
Thank you slasher i can see how this would work but i think Khris is right as i seem to have found a simpler solution unless there's something i'm missing.

Khris do you mean to access the phone it should be a GUI button instead of an inventory item ?
I don't know why i didn't think of this, perhaps because i originally had the phone as a usable item.
Thank you.
#7
Thanks for the help guys i think i've got it
Quotewhen you close the phone and go back to the game
You're right Khris i should have been more clearer on what i had tried, leaving the room (phone) wasn't the problem but i couldn't use SetNextScreenTransition(eTransitionInstant); in the previous room as this would affect the transition as using the door too, so i the set SetScreenTransition in the phone room before fade in but that didn't work either.

But it seems to be working now ive put this in global script

Code: ags
 function iPhone_Interact()
{
player.ChangeRoom(12);
SetScreenTransition(eTransitionInstant);
} 


and put a SetNextScreenTransition(eTransitionfade); in the room_leave function in the phone room this seems to solve it, i didn't think to use the global script as i'm new to scripting and haven't used the global script much.



#8
Thanks slasher thats a nice idea though i'd rather have it that you can simply click on the phone, but i'll use this if i cant find another solution.
#9
Thanks for the reply, i should have been clearer in my post i've tried these the problem is the phone is in the inventory and can be accessed by the player at any point so for example if i have a room with a door that leads to another room i want the player to be able to either leave the room using the door with a fade transition or use the phone with an instant transition.
#10
Is it possible to have certain transitions for certain rooms ? i'd like to use the fade transition for changing  but i have a smart phone item that the player always has and uses throughout the game, the phone is a room that i'd like to transition to instantly, i know you can change the transitions using code, but i can't seem to get it how i want it.

Thanks
#13
General Discussion / Re: Gotta Go To Greggs?
Tue 24/11/2009 23:00:49
#14
General Discussion / AGS on PSP ?
Tue 04/04/2006 23:52:55
Ive just found this can it be true? Handheld AGS?

               
http://www.megaupload.com/?d=OCNIPC7X
#15
http://www.youtube.com/watch?v=XI4Pp9kt-a4

I made this it was uploaded by a friend. Enjoy.
#16
Hi, Im looking for the uncertainy machine

the underdogs link dosn't work.

Thanks.
#17
Critics' Lounge / Some backgrounds
Fri 15/07/2005 19:40:10
i drew these and a few more of the same style about a year ago for a game i liked the style of them at first but grew tired of it so i gave up on them,
but now ive come back to them and i'm thinking of using them again.

I'm posting them for some crits, what do you think of the style, any thing i need to add, take away, change ?







EDIT: fixed last 2 pics
#18
nope it a capital F

any other ideas :(??
#19
ok done that but now there's another

error (line 50): undefined symbol 'floatToInt'
#20
Ahh thats what was wrong but now another problem
saying

Error (line 20): prase error: unexpected if

im not sure in pasting in to the right places here is my script-

// main global script file
#define CAR_MAX_VELOCITY 3

int car_velocity;
int car_angle;
#define CAR_MAX_VELOCITY_FORWARD 4
#define CAR_MAX_VELOCITY_BACKWARD 2


#sectionstart game_startÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function game_start() {
Ã,  // called when the game starts, before the first room is loaded
}
#sectionend game_startÃ,  // DO NOT EDIT OR REMOVE THIS LINE


#sectionstart repeatedly_executeÃ,  // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() {
Ã,  // put anything you want to happen every game cycle here
}if ( IsKeyPressed ( 377 ) == 1 )
// right cursor key pressed
{
Ã,  Ã, // let the car turn to the right
Ã,  Ã, car_angle += 1;
}

if ( IsKeyPressed ( 375 ) == 1 )
// left cursor key pressed
{
Ã,  Ã, // let the car turn to the left
Ã,  Ã, car_angle -= 1;
}

if ( IsKeyPressed ( 372 ) == 1 )
// up cursor key pressed
{
Ã,  Ã, 
Ã,  Ã, if ( car_velocity < CAR_MAX_VELOCITY )
car_velocity++;

}
else
// up cursor key not pressed
{
Ã,  Ã, // make the car slow down unless it is already stopped
Ã,  Ã, if ( car_velocity > 0 )
Ã,  Ã,  Ã,  car_velocity--;
Ã,  Ã,  Ã, 
}

// now update the cars position
character[CAR].x = character[CAR].x + FloatToInt ( IntToFloat ( car_velocity ) * Maths.Sin ( Maths.DegreesToRadians ( IntToFloat ( car_angle ) ) ) );
character[CAR].y = character[CAR].y + FloatToInt ( IntToFloat ( car_velocity ) * Maths.Cos ( Maths.DegreesToRadians ( IntToFloat ( car_angle ) ) ) );

// make the car "look at" its angle value
cCar.FaceLocation ( character[CAR].x + FloatToInt ( IntToFloat ( car_velocity ) * Maths.Sin ( Maths.DegreesToRadians ( IntToFloat ( car_angle ) ) ) ),
character[CAR].y + FloatToInt ( IntToFloat ( car_velocity ) * Maths.Cos ( Maths.DegreesToRadians ( IntToFloat ( car_angle ) ) ) ) );

#sectionend repeatedly_executeÃ,  // DO NOT EDIT OR REMOVE THIS LINE
SMF spam blocked by CleanTalk