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

#166
Off Topic / Re: Books
2010-Nov-09
Yes, please buy MrTAToad's guide. It's a very excellent resource I have been using the past couple of weeks.

#167
Does anyone know someone I can contract out to for Game Assets.
ART(2D at the moment), Sound/Music...
Will probably need someone to start work by the end of November beginning of December.
Thanks!
#168
Honestly the App Store is something I am interested in. Maybe we just need to get Gernot a Mac Developer account so he can make sure that GLBasic is ready for it when it launches or before hand.
I can pledge $25 on November 15th for such an effort.
#169
I will be willing to pay....... after we have confirmed it works from the first guy that pays for it   :whistle:
#170
Excellent! I think this should be a must add update for GLBasic.
#171
What if you remove the limit fps to 60? I thought there were some odd issues with setting that. I could be wrong though.

#172
Quote from: matchy on 2010-Nov-03
Alternative syntax example:
Code (glbasic) Select

INC self.enemyPosX,  COS(self.enemyAngle)*self.enemySpeed
INC self.enemyPosY, -SIN(self.enemyAngle)*self.enemySpeed

;)

SHOW OFF! :P j/k I'm still learning and any information I get is great.
Thanks!
#173
Just wanted to double check here but my method doesn't seem to be working.
Here is the code from my memory.

Code (glbasic) Select
startPosX = RND((459) + 10) // Choose an X point at top of the screen between 10 and 469
endPosX = RND(479) // Choose an X Point at the bottom of the screen between 0 and 479
startPosY = -32 // Above the screen
endPosY = 351 // Below the screen
movementAngle = atan(endPosy - startPosY,endPosX -startPosX) // Calculate the Angle
posX = COS(movementAngle)
posY = SIN(movementAngle)


What I find is that posX and posY are always positive and the object I am moving always moves left to right. Do I need to do something different with the atan call to get the correct angle to send my object down the screen from top to bottom?

Edit: The above works perfectly. I got back to a part of my code which was the object coordinates being updated.

Original:
Code (glbasic) Select
self.enemyPosX = self.enemyPosX + self.enemySpeed + self.updatePosX
self.enemyPosY = self.enemyPosY + self.enemySpeed + self.updatePosY


Updated - Works perfectly just had to multiply my update although I may re-order the math operation
Code (glbasic) Select
self.enemyPosX = self.enemyPosX + self.enemySpeed * self.updatePosX
self.enemyPosY = self.enemyPosY + self.enemySpeed * self.updatePosY




#174
Thanks for the clarification. Looks like I just had to go through and clean up my code. Decided to get fancy with TYPES and that helped me out a ton.
#175
I'll double check to make sure that I am passing reals but I am fairly certain that drawsprite will truncate my values as Integers. Also I may need to clean up my code some. I'm not at my machine at the moment.
#176
Ok, from my understanding Drawsprite takes Integer based values on the call for drawing on the Screen. However I have run into a situation where I need to choose a random X position at the top of the screen, choose a random x position at the bottom of the screen. Using Atan I calculate the Angle and then use COS and SIN to get the X/Y offset for drawing. However when I send those values to Drawsprite, my values get truncated after the . and I'm left with 0's. Has anyone run across this situation that they need to have a sprite move at an angle but calculate correct offsets that Drawsprite won't kill the values?
#177
Anyone have a good tutorial for implementing this? I couldn't find much information in the forums using the search function.
It probably should be on the Wiki.

Edit: Never mind I found it. I just need to put on my searching the forums directly hat more often.
#178
Would it be a good idea to do it as a game tutorial approach or just straight up reference documentation?
#179
And I'm not just talking about the process of getting your app on the store etc... I'm talking about caveats of programming GLBasic. How to do Touch, how to detect when a user rotates a screen etc... That information should be condensed to one section or a Faq/Guide.
That would be great if we could get something together like that.
#180
I think it would be great if there was a section or place for all the information for producing an iOS Game to be stored. It would make it handy for folks who are developing games for it to not have to search so hard.  :booze: