Powered by Invision Power Board

 
  Pages: (3) 1 2 [3]  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> programming RAGE topic
United States
Sploder
Posted: Jul 15 2009, 07:16 PM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 781
Member No.: 2317
Joined: 12-July 06

Status: (0d) [--]


QUOTE (Ianprime0509 @ Jul 15 2009, 03:57 PM)
I HATE this stupid collision event:

CODE
Collision Event with object obj_block:
if dead is equal to 0
     move in direction direction at most 12 till a contact with solid objects
     set the vertical speed to 0


Everything else works fine, but this stupid event won't let me fall through if I'm dead. I don't know what's wrong; I deleted the event and I fell through, I made sure(with debug mode) that dead was set to 1, and it still doesn't work.

I know this isn't a help topic, but I think I may know what's up with that.

If the obj_block object is solid, any collision event with it will keep the other object from moving into it. It's just the way GM solids work.

It may be easier to just switch the mask for the dead character out with an empty mask (a sprite with absolutely no collision).
PMEmail Poster
Top
United States
Xgoff
Posted: Jul 15 2009, 07:41 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


grah ****ing a i found the problem

i forgot to update ext\оpengl.dll in my mpuz folder

works now :D

This post has been edited by Xgoff on Jul 15 2009, 07:41 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Ianprime0509
Posted: Jul 17 2009, 01:32 PM
Quote Post


My favorite E3 game so far
[*][*]

Group Icon
Group: Members
Posts: 488
Member No.: 3316
Joined: 17-February 07

Status: (0d) [--]


QUOTE (Sploder @ Jul 15 2009, 08:16 PM)
I know this isn't a help topic, but I think I may know what's up with that.

If the obj_block object is solid, any collision event with it will keep the other object from moving into it. It's just the way GM solids work.

It may be easier to just switch the mask for the dead character out with an empty mask (a sprite with absolutely no collision).

Thanks! Gosh I hate solids but I have to use them since I'm continuing a year-old project and I don't feel like rewriting it.


--------------------

user posted imageuser posted imageuser posted image
Signature version 3.0
PMEmail Poster
Top
United States
Xgoff
Posted: Jul 17 2009, 11:29 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


trying to get offset rotations to work :|

ie like mmf's hotspots

EDIT: or why don't i just put the offsets in the vertex-setting commands idiot

This post has been edited by Xgoff on Jul 17 2009, 11:39 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
RetroXYZ
Posted: Jul 24 2009, 10:15 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


I'm going to contribute to the topic

CODE
// Create a structure for holding sprites
struct sprite
{
// Define the sprite images (maximum of 32)
image image_ids[32];
unsigned short int frames;
unsigned short int frame_id;
image frame;
float frame_exact;

// Define the sprite speed (1 is equal to the framerate)
float speed;

// Animates the sprite
void animate()
 {
 // Wait a tiny bit
 SDL_Delay(1000/60);

 // Update animation
 if (!frame_exact) { frame_exact=0; }
 frame_exact+=speed;
 if (frame_exact>=frames)
  {
  frame_exact-=frames;
  }

 // Get real frame
 frame_id=floor(frame);
 frame=image_ids[frame_id];
 }
};


why doesn't this work
PMEmail PosterMSN
Top
United States
YForce 0X
Posted: Aug 2 2009, 04:42 AM
Quote Post


fdsgagdg.
[*][*][*]

Group Icon
Group: Members
Posts: 577
Member No.: 5455
Joined: 25-June 08

Status: (0d) [--]


Yep yep, in my game, you have the super amazing ability to walk through walls even though I have it programmed so you can't.


--------------------
user posted imageuser posted image

user posted image

Ive been made by:
Orange452, Yak, Soiyeruda, Luigis#1, Gato, Yak again, Orange452 again
user posted image< Thanks Thingy

user posted image
PMEmail Poster
Top
United States
XutaWoo
Posted: Aug 2 2009, 04:54 AM
Quote Post


this didn't go as planned
[*]

Group Icon
Group: Members
Posts: 1017
Member No.: 3938
Joined: 12-June 07

Status: (0d) [--]


QUOTE (YForce 0X @ Aug 2 2009, 04:42 AM)
Yep yep, in my game, you have the super amazing ability to walk through walls even though I have it programmed so you can't.

Did you actually program horizontal collision detection or just vertical?

This post has been edited by XutaWoo on Aug 2 2009, 04:54 AM


--------------------
user posted image

user posted image
QUOTE
{NPC} Astley puts an arm around Alex. "The bees polinate the flowers, then the hummingbirds eat the pollen and 9 months later the humming bird turns into a stork and brings a human baby fromt he cabbage patch to the hospital for the hummans to buy!"
*******By Roy*******

user posted image
PMEmail Poster
Top
United States
YForce 0X
Posted: Aug 2 2009, 12:25 PM
Quote Post


fdsgagdg.
[*][*][*]

Group Icon
Group: Members
Posts: 577
Member No.: 5455
Joined: 25-June 08

Status: (0d) [--]


QUOTE (XutaWoo @ Aug 2 2009, 03:54 AM)
Did you actually program horizontal collision detection or just vertical?

Its an RPG I programmed all four, but it seems to be working now except the top and bottom collisions are kinda glitchy when moving against them.


--------------------
user posted imageuser posted image

user posted image

Ive been made by:
Orange452, Yak, Soiyeruda, Luigis#1, Gato, Yak again, Orange452 again
user posted image< Thanks Thingy

user posted image
PMEmail Poster
Top
United States
Xgoff
Posted: Aug 4 2009, 10:05 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


i love creating a system for object selection

ie if i have something like:

selected = { obj1, obj2, obj3, obj4, obj5 }

then the following would run setX() on all 5 of those objects individually:

selected:setX(100)

that's easy enough to do but if i want to do something like:

selected:setX(100 + current.x)
selected:setY(64)
selected:setAngle(2 * current.angle)
selected:setScale(1.7)

it's kinda gay to iterate over the same set of objects over and over

i could try bull****ting something like selected:perform (function () current:setX(100 + current.x); current:setY(64); current:setAngle(2 * current.angle); current:setScale(1.7) end) but ewww

oh well


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Xgoff
Posted: Aug 11 2009, 07:10 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


glsl

specifically something as simple as getting the current fragment color

grf


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
OniLink10
Posted: Aug 11 2009, 07:23 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Xgoff @ Aug 11 2009, 05:10 PM)
glsl

specifically something as simple as getting the current fragment color

grf

It should be in gl_FrontColor/gl_BackColor


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Xgoff
Posted: Aug 11 2009, 07:56 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (OniLink10 @ Aug 11 2009, 06:23 PM)
It should be in gl_FrontColor/gl_BackColor

yeah but for some reason i can only get solid red out of those


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Pages: (3) 1 2 [3]  Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0840 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.55 ]