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.


Topics - Eastfist

Pages: [1]
1
Help/FAQ / How to scroll map editor horizontally for large tiles
« on: 2008-12-20, 01:57:11 PM »
Hey gang,

Long time, but still kicking it.  Working on my modified version of 1.4.6 (I'll release it if I ever finish Runsetter, I want it perfect).  Ben, was wondering how you've implemented the map editor.  I've noticed that it will scroll vertically for tiles larger than the screen resolution, but not horizontally.  For example, if my screen resolution is 1024x768 and I have a bitmap that is 2048x2048 with tiles set at 1024x1024 each, then I can scroll vertically to select the tiles in view, but not the tiles not currently in view.  Here's the lines of code I've altered, but don't seem to be taking effect:

This is inside the MapEdit class...

               
               ...
               ElseIf EditMode = 1 Then
               ...

               If MouseX > HorizontalResolution - 16 Then
                    TSOffsetX = TSOffsetX + 8
                    If TSOffsetX > Disp.HimetricToPixelX(theMap.MapLayer(EditLayer).TSDef.Image.Width) - HorizontalResolution Then
                        TSOffsetX = Disp.HimetricToPixelX(theMap.MapLayer(EditLayer).TSDef.Image.Width) - HorizontalResolution
                    End If
                End If
                If MouseX < 16 Then
                    TSOffsetX = TSOffsetX - 8
                End If
                If TSOffsetX < 0 Then TSOffsetX = 0
               
                Disp.DrawTile MouseTS, 2, MouseX, MouseY, 0, 0, HorizontalResolution, VerticalResolution, True

Theoretically, it should work the same way it's drawn during runtime, so why isn't it scrolling?

2
Off-Topic / I need help: Fundraising/donations
« on: 2008-05-29, 05:38:03 PM »
Hey gang,

It's been a LONG, LONG time, but I've been hit with the toughest dose of reality and been dealing with it best I can.  Explains why I haven't been able to continue working on my games and letting you guys know the progress.  But I check this forum all the time.  Anyway, I've been diagnosed with a wrist bone tumor and am going into surgery for a bone graft.  I don't have medical insurance, so I can't afford the medical bills.  I figure, hey, I got nothing to lose by asking everyone I "know" for help.  So pretty much, if anyone is willing to donate some moolah, please do.  I put up my sob story at my website: www.geocities.com/eastfist which has my P.O. Box address and other information.  Hope you guys can spare some green.

Chongchen (aka the Eastfist)

3
Script / How to make LEFT-RIGHT player face Right at runtime
« on: 2006-08-29, 03:48:17 PM »
Tricks with counters in the individual map's inventory didn't cut the mustard for me, not efficiently.  Well, I suppose I had to succumb to scripting and been trying to pick it up lately.  So here's the script to make the Left-Right player sprite face the Right direction at runtime:



'Declare variables for direction last facing
'Could use one boolean variable, but makes easier for non-scripter to understand
Dim facingLeft
Dim facingRight

'Before play loop starts, initialize the custom variables
Sub Player_OnPlayInit
   facingLeft = 0
   facingRight = 1
End Sub

'Depending on last button pressed, set last direction facing
Sub Player_OnControllerMove(OldActions, NewActions)
With ProjectObj.GamePlayer.PlayerSprite
   'If user presses Left arrow
   If (Not OldActions) And NewActions And ACTION_LEFT Then
      facingLeft = 1
      facingRight = 0
   End If
   'If user presses Right arrow
   If (Not OldActions) And NewActions And ACTION_RIGHT Then
      facingLeft = 0
      facingRight = 1
   End If
End With
End Sub

'Before the player's movements are processed, set the player state according
Sub Player_OnBeforeMoveSprites
With ProjectObj.GamePlayer.PlayerSprite
   'If not moving in either direction, and was last facing right, then face right
   If (.CurState Mod 2) = 0 And facingRight = 1 Then
       .CurState = 1
       'CurState = 0  facing left with no velocity
       'CurState = 1  facing right with no velocity
       'CurState = 2  facing left with velocity
       'CurState = 3  facing right with velocity
       'Didn't use these for boolean setup because CurState changes all the time
       'and as the designer, I want control over variables
   End If
End With
End Sub



That should be good globally and puts a smile on MY face. Whew!  If you want to use it, generate a VBS script using the scripting wizard and place the code from above into the proper Sub procedure.  Sub procedures are the blocks of code starting with Sub and ending with End Sub.

4
Off-Topic / Please vote for my Silent Hill movie poster
« on: 2006-01-11, 11:32:02 PM »
Hey gang,

Being a graphic designer and all, I've entered Sony Picture's Silent Hill gimmicky marketing poster contest and they've approved my poster for judging.  Sooooo, I'd like you guys to vote for my design.  Only one vote per person please, so I don't get disqualified (imagine if I really won, then you guys can say, "hey, we know that guy..."   So please help a brotha out?

Alls you gotta do is vote by Jan. 17 at this link:

http://www.sonypictures.com/movies/silenthill/postercontest/vote/vote_popup.php?imgId=840


Thanks in advance for anyone who supports it.  8)

5
Help/FAQ / Recording playback video
« on: 2005-08-28, 10:58:52 PM »
Hey gang,

I found a freeware program that will record our games during runtime into videos.

It's called CamStudio. Here's a link:

http://www.camstudio.org

I recorded a Runsetter demo you can view here, bottom of page:

http://www.geocities.com/eastfist/gamedev.htm


Unfortunately, no sound.

6
Off-Topic / Batman Begins
« on: 2005-06-12, 10:17:16 PM »
If there are two big movies I wanted to see this summer, they are: Episode III and Batman Begins.

Already saw Anakin get cooked, so now I'm waiting to see Batman kick arse this Wednesday.

Anyone else into comic book-to-film movies?

7
Level 2 is 90% completed. So far, it takes 17 minutes to test-play the first two levels... whew... still chugging alone.

Pages: [1]