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.


Messages - gwal

Pages: 1 ... 3 4 [5]
61
Projects / Re: Screen Shot Topic...
« on: 2005-12-31, 03:16:04 PM »
Once I finish the 3rd level, I'll submit a demo, but I probably won't have the whole game completed for a while.

62
Projects / Re: Screen Shot Topic...
« on: 2005-12-31, 03:02:32 PM »
Hehehe...yes, FEAR actually did give me the slow motion idea when I played it at my friend's house. I thought that it was a pretty cool mechanic that could work in my own game.

63
Script / Re: Slow-Motion
« on: 2005-12-31, 02:26:23 PM »
Well, the player starts out with 150 slow motion. (max and initial quantity, though the max quantity of the slow motion can be increased throughout the game). Since I can't see a change in the bar when I activate slow motion, I'm guessing it's either at 150 or 149.

64
Projects / Re: Screen Shot Topic...
« on: 2005-12-31, 02:19:57 PM »
I like the detail in your game, Gwal.

65
Script / Re: Slow-Motion
« on: 2005-12-31, 02:01:33 PM »
No. Item #8 (in the inventory, so it's #7 in the script), is already being displayed on the screen as a small vertical bar. The quantity on the screen isn't changing.

66
Projects / Re: Screen Shot Topic...
« on: 2005-12-31, 12:39:44 AM »
Here's some screenshots from my game.
The first is from the 3rd level, and the second is from the first level

67
Script / Re: Slow-Motion
« on: 2005-12-31, 12:00:41 AM »
Ok, I would have replied earlier, but I've been on vacation. I added the changes and when I started up the game, it wouldn't work untill I changed:
Code: [Select]
If  ProjectObj.GamePlayer.InvQuantityOwned(7) <= 1to
Code: [Select]
If  ProjectObj.GamePlayer.InvQuantityOwned(7) <= 1 ThenThis made perfect sense to me. However, changing these two lines still hasn't fixed the problem, and I'm not sure what to do now. Right now the game goes into slomo fine, but then it won't stop. Sorry if I sound annoying, but although I've been using gamedev for a while, I don't know too much about scripting.

68
Script / Re: Slow-Motion
« on: 2005-12-27, 04:23:38 PM »
OK, so I implemented the changes in the script, but right now when I press the control key, it goes into slow motion and it won't stop. Also, the slomo item isn't being subtracted. (But then again, the player has 150 of it on a small bar so maybe I just can't see it). I'm not sure where to go from here.

69
Script / Slow-Motion
« on: 2005-12-25, 08:36:36 PM »
 Recently when I was working on my game's script, I decided that it would be cool if by pressing the control key, then the player could use 'slow motion' for a few seconds. Right now the script slows down the frame rate, and increases the speed of the player sprite. (So everything else moves slow, but the player is only slowed down a little.) It also subtracts your slo-mo power from the internet. What I'm trying to do is have it subtract 1 from the slo-mo power each frame, but right now it subtracts it all at once. I tried the WaitForFrame line, but it didn't seem to work. Is there any way to do this? This is the code I'm using.

Code: [Select]
Sub Player_OnControllerMove(OldActions, NewActions)
       If (Not OldActions) And NewActions And ACTION_BUTTON3 Then DoFireButton5
End Sub

'slow motion'
Sub DoFireButton5()
 If ProjectObj.GamePlayer.InvQuantityOwned(7) <= 1 Then Exit Sub
 If ProjectObj.GamePlayer.InvQuantityOwned(7) > 1 Then
   ProjectObj.GamePlayer.FrameRateLimit = 30
   ProjectObj.GamePlayer.rMap.SpriteTemplates("player").MoveSpeed = 5
   LoseSloMo     
   ProjectObj.GamePlayer.FrameRateLimit = 60
   ProjectObj.GamePlayer.rMap.SpriteTemplates("player").MoveSpeed = 3
 End If
End Sub

Sub LoseSloMo
 ProjectObj.GamePlayer.InvQuantityOwned(7) = ProjectObj.GamePlayer.InvQuantityOwned(7) - 1
  If ProjectObj.GamePlayer.InvQuantityOwned(7) <= 1 Then Exit Sub
  If ProjectObj.GamePlayer.InvQuantityOwned(7) > 1 Then
    LoseSloMo
  End If
End Sub

HostObj.SinkObjectEvents ProjectObj.GamePlayer, "Player"
HostObj.ConnectEventsNow()
ProjectObj.GamePlayer.Play 16


Note: Between OnControllerMove and slow motion there is more code for shooting, and other things which are generated by the scripting wizard. Since I don't think they would have any effect on the slow motion, i didn't include them.

Pages: 1 ... 3 4 [5]