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 - Amayirot Akago

#541
Yep, I'm trying to wrap my caveman brain around scripting again. Hold on to your butts :=

I want to make it so that the room will randomly pan around to each corner of the screen, using the Tween module like so:

Code: ags

function room_AfterFadeIn()
{
  if (ran==0) TweenViewport(7.0, 0, 0);
  else if (ran==1) TweenViewport(7.0, 0, 247);
  else if (ran==2) TweenViewport(7.0, 349, 0);
  else if (ran==3) TweenViewport(7.0, 349, 247);
  }


(never mind the odd coordinates, the background used is slightly larger than the game's resolution of 320x200)

What I'm struggling to understand is how to define a ran variable that gets its value from the Random function. From what I've read in the Help file, I should be able to simply do:
Code: ags

int ran=Random(2);


This, however, makes AGS freak out and tell me "Expected integer value after '='". So, could someone more intelligent than me please explain how to do this right? Furthermore, the plan is to have the screen pan around for several seconds before moving on to something else, how would I tell it to do that?
#542
The Rumpus Room / Re: The Movie Quote Game
Thu 02/03/2017 10:17:52
Indiana Jones & The Last Crusade.
#543
The Rumpus Room / Re: Name the Game
Thu 02/03/2017 08:24:19
I knew it was, I still gotta play that game sometime ;)

[imgzoom]https://dl.dropboxusercontent.com/u/57502026/walklikeanegyptian.png[/imgzoom]
#544
The Rumpus Room / Re: Name the Game
Wed 01/03/2017 21:18:46
D/Generation.
#545
The Rumpus Room / Re: Name the Game
Tue 28/02/2017 20:00:23
I can see the picture just fine, but I'm withholding my answer in case anybody else knows.
#546
Fantastic :) I've never played the original Gateway so I might just try this instead.
#547
The Rumpus Room / Re: *Guess the Movie Title*
Mon 27/02/2017 15:27:47
Galaxy Quest?
#548
The Rumpus Room / Re: Name the Game
Sat 25/02/2017 20:28:57
(nod) Gribbler gets it! I figured the picture of the Bremen musicians over the fireplace would be a dead giveaway, dunno if that did it or what. Either way, your turn :)
#550
The Rumpus Room / Re: Name the Game
Sat 25/02/2017 18:39:40
I think that might be the first time I've ever seen Atavismus get something wrong :D Nope.

Next hint: this game is aimed at kids.
#552
The Rumpus Room / Re: Name the Game
Sat 25/02/2017 09:28:04
It's not KQ or QFG, but it is still fantasy-ish.
#553
The Rumpus Room / Re: The Movie Quote Game
Sat 25/02/2017 08:55:09
Fear & Loathing In Las Vegas?
#554
The Rumpus Room / Re: Name the Game
Fri 24/02/2017 23:07:11
#555
The Rumpus Room / Re: Name the Game
Fri 24/02/2017 17:24:07
None right so far, but Chrille's answer is getting closer.
#556
The Rumpus Room / Re: Name the Game
Fri 24/02/2017 15:18:33
Oh, whoopsie :P Close enough I guess. Saw the game on Ross's Game Dungeon so that's where I first learned about its existence ;)

[imgzoom]https://dl.dropboxusercontent.com/u/57502026/satyre.png[/imgzoom]
#557
The Rumpus Room / Re: Name the Game
Fri 24/02/2017 14:52:21
CONSTRUCTION BOB GOES TO HELL.
#558
The Rumpus Room / Re: The Movie Quote Game
Fri 24/02/2017 04:03:35
One of the Rambo movies?
#559
The Rumpus Room / Re: The Movie Quote Game
Thu 23/02/2017 04:14:39
Well remembered, dayowlron ;) One of my favorite movies, must've watched it dozens of times on DVD back in the day.
#560
The Rumpus Room / Re: The Movie Quote Game
Wed 22/02/2017 16:36:36
And I've never even seen it :D

Come with me, my princess. It is time to make you mine forever.
"For all eternity," idiot!
SMF spam blocked by CleanTalk